alertlock

This commit is contained in:
2026-02-18 19:16:00 -06:00
parent 6abbe700d6
commit 608800f8fb
4 changed files with 36 additions and 34 deletions
+13 -8
View File
@@ -94,7 +94,7 @@ export default function AddTime({
Swal.fire({
title: "Tiempo Guardado!",
icon: "success",
draggable: true
draggable: true,
});
setFolio("");
@@ -149,6 +149,11 @@ export default function AddTime({
if (lock && numericValue > 1000) {
toast.error("El monto no puede superar $1000.00");
Swal.fire({
title: "El monto no puede superar $1000.00 Desbloquea el candado !",
icon: "error",
draggable: true,
});
return;
}
@@ -171,25 +176,25 @@ export default function AddTime({
/>
</div>
<div className="containerButton" style={{ position: 'relative' }}>
<div className="containerButton" style={{ position: "relative" }}>
<button className="button buttonSearch" type="submit">
Guardar
</button>
<button
type="button"
className={`button buttonCancel ${lock ? "buttonLock" : "buttonOpenLock"
}`}
className={`button buttonCancel ${
lock ? "buttonLock" : "buttonOpenLock"
}`}
onClick={() => {
setLock((prev) => !prev)
setAmount('');
setLock((prev) => !prev);
setAmount("");
}}
/>
</div>
</div>
</form>
</div>
);
}
//IO
//IO
+10 -13
View File
@@ -32,17 +32,16 @@ export default function AsignacionMesas({ idCuenta, inscripcion }: Props) {
setBitacora([]);
if (!result?.error) toast.error("Ya cuentas con un equipo asignado");
Swal.fire({
title: "Ya cuentas con un equipo asignado!",
icon: "error",
draggable: true
});
title: "Ya cuentas con un equipo asignado!",
icon: "error",
draggable: true,
});
if (!resultMesa?.error) toast.error("Ya cuentas con una mesa asignada");
Swal.fire({
title: "Ya cuentas con mesa asignada!",
icon: "error",
draggable: true
});
Swal.fire({
title: "Ya cuentas con mesa asignada!",
icon: "error",
draggable: true,
});
}
};
@@ -130,9 +129,8 @@ export default function AsignacionMesas({ idCuenta, inscripcion }: Props) {
Swal.fire({
title: "Mesa asignada correctamente!",
icon: "success",
draggable: true
draggable: true,
});
} catch (error) {
toast.error("No se pudo asignar la mesa");
}
@@ -186,7 +184,6 @@ export default function AsignacionMesas({ idCuenta, inscripcion }: Props) {
>
Asignar Mesa
</button>
</div>
</div>
);
+13 -8
View File
@@ -142,7 +142,7 @@ export default function Inscripcion({
Swal.fire({
title: "Alumno inscrito sin pago!",
icon: "success",
draggable: true
draggable: true,
});
router.refresh();
} catch (err: any) {
@@ -207,6 +207,12 @@ export default function Inscripcion({
if (lock && numericValue > 1000) {
toast.error("El monto no puede superar $1000.00");
Swal.fire({
title:
"El monto no puede superar $1000.00 Desbloquea el candado !",
icon: "error",
draggable: true,
});
return;
}
@@ -229,16 +235,16 @@ export default function Inscripcion({
/>
</div>
<div className="containerButton" style={{ position: 'relative' }}>
<div className="containerButton" style={{ position: "relative" }}>
<button className="button buttonSearch">Inscribir</button>
<button
type="button"
className={`button buttonCancel ${lock ? "buttonLock" : "buttonOpenLock"
}`}
className={`button buttonCancel ${
lock ? "buttonLock" : "buttonOpenLock"
}`}
onClick={() => {
setLock((prev) => !prev)
setAmount('');
setLock((prev) => !prev);
setAmount("");
}}
/>
</div>
@@ -246,7 +252,6 @@ export default function Inscripcion({
</form>
)}
{conPago === "sin" && (
<div className="containerButton">
<button
className="button buttonSearch"
-5
View File
@@ -788,7 +788,6 @@
"cpu": [
"arm"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -849,7 +848,6 @@
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -870,7 +868,6 @@
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -891,7 +888,6 @@
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -912,7 +908,6 @@
"cpu": [
"ia32"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [