From 4c7c8a068096a8bff10dae202d4e9daf34441ce8 Mon Sep 17 00:00:00 2001 From: Alejandra-Guzman-Mendez <424118767@pcpuma.acatlan.unam.mx> Date: Tue, 4 Nov 2025 13:58:39 -0600 Subject: [PATCH] mensaje --- src/app/(Administrador)/crearCuenta/page.tsx | 13 +++++++++++++ src/app/reporte/page.tsx | 12 ++++++++++++ 2 files changed, 25 insertions(+) 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 */}