Modificaciones
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user