From e8e162e21503a1b1fb11cc111fd5cb43bcab0a40 Mon Sep 17 00:00:00 2001 From: CarlosssFlores <307100636@pcpuma.acatlan.unam.mx> Date: Mon, 22 Sep 2025 16:59:47 -0600 Subject: [PATCH] new view --- app/(private)/InformacionEquipo/page.tsx | 19 +++++++++++++--- app/(private)/Programas/page.tsx | 28 +++++++++++++++++++++++- middleware.ts | 19 +--------------- 3 files changed, 44 insertions(+), 22 deletions(-) diff --git a/app/(private)/InformacionEquipo/page.tsx b/app/(private)/InformacionEquipo/page.tsx index a477682..0e7ab86 100644 --- a/app/(private)/InformacionEquipo/page.tsx +++ b/app/(private)/InformacionEquipo/page.tsx @@ -27,11 +27,24 @@ export default function Page() { - + - - +
diff --git a/app/(private)/Programas/page.tsx b/app/(private)/Programas/page.tsx index b6a9f29..1419f31 100644 --- a/app/(private)/Programas/page.tsx +++ b/app/(private)/Programas/page.tsx @@ -5,7 +5,11 @@ import styleprograms from "./programas.module.css"; export default function Page() { const [Editar, setEditar] = useState(true); + const [Nuevo, setNuevo] = useState(true); + const handleNuevo = () => { + setNuevo(false); + }; const handleEditar = () => { setEditar(false); }; @@ -26,7 +30,10 @@ export default function Page() { -
@@ -51,6 +58,25 @@ export default function Page() { )} + + {!Nuevo && ( +
+ + setUser(e.target.value)} + placeholder="Coloca " + /> +
+ + + +
+
+ )} ); } diff --git a/middleware.ts b/middleware.ts index 0f47ec8..f068a83 100644 --- a/middleware.ts +++ b/middleware.ts @@ -13,23 +13,6 @@ export function middleware(request: NextRequest) { } export const config = { - matcher: [ - "/Reportes", - "/Monitor", - "/QuitarSancion", - "/Programas", - "/Mensajes", - "/Inscritos", - "/Inscripciones", - "/InformacionEquipo", - "/Impresiones", - "/CambiarPass", - "/BitacoraSanciones", - "/AsignacionMesas", - "/AsignacionEquipo", - "/Alta", - "/AgregarTiempo", - "/ActivosMantenimiento", - ], + matcher: [], }; //IO