diff --git a/src/app/(Administrador)/crearCuenta/page.tsx b/src/app/(Administrador)/crearCuenta/page.tsx index e5b260b..82b332a 100644 --- a/src/app/(Administrador)/crearCuenta/page.tsx +++ b/src/app/(Administrador)/crearCuenta/page.tsx @@ -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) => { e.preventDefault(); diff --git a/src/app/reporte/page.tsx b/src/app/reporte/page.tsx index 74fa30f..fd86a93 100644 --- a/src/app/reporte/page.tsx +++ b/src/app/reporte/page.tsx @@ -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 (
{/* Panel izquierdo: título, buscador y tabla */}