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({