Modificaciones

This commit is contained in:
santiago
2026-01-16 12:14:02 -06:00
parent 513e8dab8d
commit fcfa2d2c3b
2 changed files with 15 additions and 3 deletions
@@ -94,9 +94,9 @@ export default function CompletarDatosPersonales({
router.refresh();
await obtenerServicio();
// setTimeout(() => {
// router.replace("/"); //Estaria bien corregir esta parte.
// }, 1500);
setTimeout(() => {
router.replace("/"); //Estaria bien corregir esta parte.
}, 1500);
} catch (err) {
Swal.fire("Error", "No se pudieron actualizar tur datos, por favor intentelo en otro momento", "error")
@@ -9,6 +9,7 @@ import DatePicker from "react-datepicker";
import { PiDotFill } from "react-icons/pi";
import axios from "axios";
import Image from "next/image";
import Swal from "sweetalert2";
type Responsable = {
idUsuario?: number;
@@ -83,6 +84,17 @@ export default function NuevoServicio({
setPrograma({});
};
const confirmarServicioS = () => {
Swal.fire({
title: 'Warning',
text: '¿Esta seguro(a) de querer Pre-Registrar a este alumno?',
icon: 'warning',
confirmButtonText: 'Confirmar',
cancelButtonText: 'Cancelar',
})
}
// Validacion para mostrar el boton
const mostrarBoton = () => {
if (!alumno.idUsuario) return true;