From 960769ea3363d37534b6c366b0f64034d99be22a Mon Sep 17 00:00:00 2001 From: frcarlos <307100636@pcpuma.acatlan.unam.mx> Date: Fri, 20 Feb 2026 14:33:08 -0500 Subject: [PATCH] sweetalertcomplet --- app/(private)/AgregarTiempo/Addtime.tsx | 58 +++++++++--------- .../AsignacionEquipo/PlaticaGate.tsx | 32 ++++++++-- app/Components/ActivosMantenimiento/Areas.tsx | 48 ++++++++------- app/Components/Alta/registerAlta.tsx | 17 +++++- app/Components/AsignacionMesas.tsx | 37 +++++++++--- .../BitacoraSanciones/ApplySanction.tsx | 34 +++++++++-- app/Components/CheckBoxEquipo.tsx | 5 +- app/Components/CheckBoxMesa.tsx | 6 +- app/Components/Equipos/equipos.tsx | 29 +++++++-- app/Components/Impressions/impressions.tsx | 25 ++++++-- .../InformacionEquipos/ProgramSelector.tsx | 50 ++++++++++++---- app/Components/Receipt/Inscripcion.tsx | 59 +++++++++++++++---- app/Components/Receipt/Receipt.tsx | 36 ++++++++--- .../auth/ChangePassword/changePassword.tsx | 10 +++- app/Components/auth/Login/Login.tsx | 22 ++++++- package-lock.json | 18 ++++++ 16 files changed, 361 insertions(+), 125 deletions(-) diff --git a/app/(private)/AgregarTiempo/Addtime.tsx b/app/(private)/AgregarTiempo/Addtime.tsx index 637b38e..0960e01 100644 --- a/app/(private)/AgregarTiempo/Addtime.tsx +++ b/app/(private)/AgregarTiempo/Addtime.tsx @@ -48,50 +48,52 @@ export default function AddTime({ const handleSaveReceipt = async () => { if (!numAcount) { + Swal.fire({ - title: " Busca de nuevo al estudiante!", + title: "Busca de nuevo al estudiante!", icon: "error", - draggable: true, + draggable: true }); return; } if (!plataformaSeleccionada) { + Swal.fire({ - title: " Selecciona una plataforma!", + title: "Selecciona una plataforma!", icon: "error", - draggable: true, + draggable: true }); return; } if (!folio) { - - Swal.fire({ - title: " Ingresa el folio del tiket!", - icon: "error", - draggable: true, - }); + + Swal.fire({ + title: "Ingresa el folio del ticket!", + icon: "error", + draggable: true + }); return; } if (!amount) { - - Swal.fire({ - title: " Coloca el monto a depositar!", - icon: "error", - draggable: true, - }); + + Swal.fire({ + title: "Coloca el monto a depositar!", + icon: "error", + draggable: true + }); return; } if (!date) { - toast.error("Coloca la fecha"); - Swal.fire({ - title: " Coloca la fecha!", - icon: "error", - draggable: true, - }); + + Swal.fire({ + title: "Coloca la fecha!", + icon: "error", + draggable: true + }); return; } @@ -113,9 +115,9 @@ export default function AddTime({ { headers }, ); - toast.success("Tiempo Guardado"); + Swal.fire({ - title: "Tiempo Guardado!", + title: "Tiempo Guardado Correctamente!", icon: "success", draggable: true, }); @@ -175,6 +177,7 @@ export default function AddTime({ const numericValue = parseFloat(value); if (lock && numericValue > 1000) { + Swal.fire({ title: "El monto no puede superar $1000.00 Desbloquea el candado !", @@ -185,7 +188,7 @@ export default function AddTime({ } if (numericValue > 10000) { - + Swal.fire({ title: "El monto no puede superar $10000.00 pesos", icon: "error", @@ -220,9 +223,8 @@ export default function AddTime({