From d2313208803b10d7887bb4bae368c5b24f9616f9 Mon Sep 17 00:00:00 2001 From: CarlosssFlores <307100636@pcpuma.acatlan.unam.mx> Date: Wed, 8 Oct 2025 11:40:11 -0600 Subject: [PATCH] peticion --- app/(private)/InformacionEquipo/page.tsx | 2 +- .../InformacionEquipos/ProgramSelector.tsx | 6 ++- app/Components/SelectAreas.jsx | 39 +++++++++++++++++++ 3 files changed, 44 insertions(+), 3 deletions(-) create mode 100644 app/Components/SelectAreas.jsx diff --git a/app/(private)/InformacionEquipo/page.tsx b/app/(private)/InformacionEquipo/page.tsx index e664473..822caa7 100644 --- a/app/(private)/InformacionEquipo/page.tsx +++ b/app/(private)/InformacionEquipo/page.tsx @@ -8,7 +8,7 @@ import ClearParams from "@/app/Components/Global/ClearParams/ClearParams"; export default async function Page(props: { searchParams?: Promise<{ - key?:string; + key?: string; machine?: string; success?: string; error?: string; diff --git a/app/Components/InformacionEquipos/ProgramSelector.tsx b/app/Components/InformacionEquipos/ProgramSelector.tsx index fd0cf9d..0459d34 100644 --- a/app/Components/InformacionEquipos/ProgramSelector.tsx +++ b/app/Components/InformacionEquipos/ProgramSelector.tsx @@ -51,7 +51,6 @@ function ProgramSelector({ titulo, opcion }: DatosEquipo) { programas.reduce((acc, prog) => ({ ...acc, [prog]: false }), {}) ); - // Función al cambiar el select const handleChangeEquipo = (e: React.ChangeEvent) => { const equipo = e.target.value; setEquipoSeleccionado(equipo); @@ -74,10 +73,13 @@ function ProgramSelector({ titulo, opcion }: DatosEquipo) { Object.keys(checkboxes).filter((p) => checkboxes[p]) ); }; - //hola madefoker + return (
+ + + + + {areas.map((area) => ( + + ))} + + + ); +}