From fef930acdad34569dc9ef1f50949a48fc239223f Mon Sep 17 00:00:00 2001 From: IO420 <320154041@pcpuma.acatlan.unam.mx> Date: Wed, 28 Jan 2026 11:01:20 -0600 Subject: [PATCH] hide bitacora --- app/(private)/AgregarTiempo/Addtime.tsx | 5 +---- app/(private)/AsignacionEquipo/PlaticaGate.tsx | 12 ++++++------ 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/app/(private)/AgregarTiempo/Addtime.tsx b/app/(private)/AgregarTiempo/Addtime.tsx index 1e26f05..3b1b410 100644 --- a/app/(private)/AgregarTiempo/Addtime.tsx +++ b/app/(private)/AgregarTiempo/Addtime.tsx @@ -29,18 +29,15 @@ export default function AddTime({ }: AddTimeProps) { const router = useRouter(); - // 🔹 selección plataforma const [plataformaSeleccionada, setPlataformaSeleccionada] = useState< string | null >(null); - // 🔹 datos del recibo const [folio, setFolio] = useState(""); const [amount, setAmount] = useState(""); const todayISO = new Date().toISOString().split("T")[0]; const [date, setDate] = useState(todayISO); - // 🔹 restricción de fechas const day = new Date(); const year = day.getFullYear(); const month = day.getMonth(); @@ -49,7 +46,6 @@ export default function AddTime({ const minFecha = new Date(year, month, 1).toISOString().split("T")[0]; const maxFecha = new Date(year, month, today).toISOString().split("T")[0]; - // 🔹 lógica central (AQUÍ crecerá después) const handleSaveReceipt = async () => { if (!numAcount) { toast.error("Busca de nuevo al estudiante"); @@ -177,3 +173,4 @@ export default function AddTime({ ); } +//IO \ No newline at end of file diff --git a/app/(private)/AsignacionEquipo/PlaticaGate.tsx b/app/(private)/AsignacionEquipo/PlaticaGate.tsx index 7ce0813..c606469 100644 --- a/app/(private)/AsignacionEquipo/PlaticaGate.tsx +++ b/app/(private)/AsignacionEquipo/PlaticaGate.tsx @@ -4,9 +4,10 @@ import { useEffect, useState } from "react"; import { envConfig } from "@/app/lib/config"; import toast from "react-hot-toast"; -import "./asignacion.css"; import { getEquipoByCount } from "@/app/lib/getEquipoByCount"; +import "./asignacion.css"; + type Props = { inscripcion: any[]; numAcount: number; @@ -19,13 +20,12 @@ export default function PlaticaGate({ inscripcion, numAcount }: Props) { const [equipoSeleccionado, setEquipoSeleccionado] = useState(null); const [open, setOpen] = useState(false); const [tiempo, setTiempo] = useState(15); - const [bitacora, setBitacora] = useState(null); + const [bitacora, setBitacora] = useState<[]|null>(null); const fetchByCuenta = async (idCuenta: number) => { const result = await getEquipoByCount(idCuenta); if (result?.error) { - toast.error(result.error); setBitacora(null); } else { setBitacora(result); @@ -117,6 +117,7 @@ export default function PlaticaGate({ inscripcion, numAcount }: Props) { throw new Error("Error al asignar equipo"); } + setBitacora([]) toast.success("Equipo asignado correctamente"); } catch (error) { toast.error("No se pudo asignar el equipo"); @@ -124,9 +125,8 @@ export default function PlaticaGate({ inscripcion, numAcount }: Props) { }; if (bitacora) { - return (<> - ); -} + return <>; + } return (