mensaje
This commit is contained in:
@@ -9,6 +9,7 @@ import axios from "axios";
|
||||
import { useRouter } from "next/navigation";
|
||||
import toast from "react-hot-toast";
|
||||
|
||||
|
||||
export default function Page() {
|
||||
const [nombre, setNombre] = useState("");
|
||||
const [correo, setCorreo] = useState("");
|
||||
@@ -18,6 +19,18 @@ export default function Page() {
|
||||
|
||||
const router = useRouter();
|
||||
|
||||
const [crearCuenta,setCrearCuenta]=useState();
|
||||
|
||||
async function CrearCuenta() {
|
||||
const res=await axios.post("https",{
|
||||
nombre,
|
||||
correo,
|
||||
password
|
||||
});
|
||||
setCrearCuenta(res.data);
|
||||
}
|
||||
|
||||
|
||||
const handleSubmit = async (e: React.FormEvent<HTMLFormElement>) => {
|
||||
e.preventDefault();
|
||||
|
||||
|
||||
@@ -1,6 +1,18 @@
|
||||
"use client"
|
||||
import { useState } from "react";
|
||||
import "./reporte.css";
|
||||
import axios from "axios";
|
||||
|
||||
export default function Reporte() {
|
||||
|
||||
const [report,setReport]=useState();
|
||||
|
||||
async function Report() {
|
||||
const res=await axios.get("https");
|
||||
setReport(res.data);
|
||||
}
|
||||
|
||||
|
||||
return (
|
||||
<div className="reporte-layout">
|
||||
{/* Panel izquierdo: título, buscador y tabla */}
|
||||
|
||||
Reference in New Issue
Block a user