added new alerts and modified restrictions to the lock
This commit is contained in:
@@ -161,6 +161,18 @@ export default function AddTime({
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (numericValue > 10000) {
|
||||||
|
toast.error("El monto no puede superar $10000.00");
|
||||||
|
Swal.fire({
|
||||||
|
title:
|
||||||
|
"El monto no puede superar $10000.00 pesos",
|
||||||
|
icon: "error",
|
||||||
|
draggable: true,
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
setAmount(value);
|
setAmount(value);
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
@@ -187,9 +199,8 @@ export default function AddTime({
|
|||||||
|
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
className={`button buttonCancel ${
|
className={`button buttonCancel ${lock ? "buttonLock" : "buttonOpenLock"
|
||||||
lock ? "buttonLock" : "buttonOpenLock"
|
}`}
|
||||||
}`}
|
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setLock((prev) => !prev);
|
setLock((prev) => !prev);
|
||||||
setAmount("");
|
setAmount("");
|
||||||
|
|||||||
@@ -220,6 +220,18 @@ export default function Inscripcion({
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (numericValue > 10000) {
|
||||||
|
toast.error("El monto no puede superar $10000.00");
|
||||||
|
Swal.fire({
|
||||||
|
title:
|
||||||
|
"El monto no puede superar $10000.00 pesos",
|
||||||
|
icon: "error",
|
||||||
|
draggable: true,
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
setAmount(value);
|
setAmount(value);
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
@@ -243,9 +255,8 @@ export default function Inscripcion({
|
|||||||
<button className="button buttonSearch">Inscribir</button>
|
<button className="button buttonSearch">Inscribir</button>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
className={`button buttonCancel ${
|
className={`button buttonCancel ${lock ? "buttonLock" : "buttonOpenLock"
|
||||||
lock ? "buttonLock" : "buttonOpenLock"
|
}`}
|
||||||
}`}
|
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setLock((prev) => !prev);
|
setLock((prev) => !prev);
|
||||||
setAmount("");
|
setAmount("");
|
||||||
|
|||||||
@@ -120,6 +120,23 @@ function Receipt({ numAcount }: ReceiptsProps) {
|
|||||||
|
|
||||||
if (lock && numericValue > 1000) {
|
if (lock && numericValue > 1000) {
|
||||||
toast.error("El monto no puede superar $1000.00");
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (numericValue > 10000) {
|
||||||
|
toast.error("El monto no puede superar $10000.00");
|
||||||
|
Swal.fire({
|
||||||
|
title:
|
||||||
|
"El monto no puede superar $10000.00 pesos",
|
||||||
|
icon: "error",
|
||||||
|
draggable: true,
|
||||||
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user