From fcfa2d2c3b08dd0518d4b0c898e02bf2f67b9e29 Mon Sep 17 00:00:00 2001 From: santiago Date: Fri, 16 Jan 2026 12:14:02 -0600 Subject: [PATCH] Modificaciones --- src/components/alumno/completar-datos-personales.tsx | 6 +++--- src/components/responsable/nuevo-servicio.tsx | 12 ++++++++++++ 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/components/alumno/completar-datos-personales.tsx b/src/components/alumno/completar-datos-personales.tsx index 1dc4d84..5d88982 100644 --- a/src/components/alumno/completar-datos-personales.tsx +++ b/src/components/alumno/completar-datos-personales.tsx @@ -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") diff --git a/src/components/responsable/nuevo-servicio.tsx b/src/components/responsable/nuevo-servicio.tsx index bad4419..d2bf81c 100644 --- a/src/components/responsable/nuevo-servicio.tsx +++ b/src/components/responsable/nuevo-servicio.tsx @@ -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;