Merge branch 'Carlos' of repositorio.acatlan.unam.mx:IO/front-AT into Develop
This commit is contained in:
@@ -146,7 +146,7 @@ export default function Inscripcion({
|
||||
Swal.fire({
|
||||
title: "Alumno inscrito sin pago!",
|
||||
icon: "success",
|
||||
draggable: true
|
||||
draggable: true,
|
||||
});
|
||||
router.refresh();
|
||||
} catch (err: any) {
|
||||
@@ -211,6 +211,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;
|
||||
}
|
||||
|
||||
@@ -233,16 +239,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>
|
||||
@@ -250,7 +256,6 @@ export default function Inscripcion({
|
||||
</form>
|
||||
)}
|
||||
{conPago === "sin" && (
|
||||
|
||||
<div className="containerButton">
|
||||
<button
|
||||
className="button buttonSearch"
|
||||
|
||||
@@ -74,6 +74,11 @@ function Receipt({ numAcount }: ReceiptsProps) {
|
||||
router.refresh();
|
||||
} catch (err: any) {
|
||||
toast.error(String(err));
|
||||
Swal.fire({
|
||||
title: "Tiket ya existente!",
|
||||
icon: "error",
|
||||
draggable: false
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user