Merge branch 'Carlos' of repositorio.acatlan.unam.mx:IO/front-AT into Develop
This commit is contained in:
@@ -3,6 +3,7 @@ import { envConfig } from "@/app/lib/config";
|
||||
import axios from "axios";
|
||||
import { useEffect, useState } from "react";
|
||||
import toast from "react-hot-toast";
|
||||
import Swal from "sweetalert2";
|
||||
|
||||
interface Programa {
|
||||
id_programa: number;
|
||||
@@ -77,6 +78,11 @@ export default function ProgramSelector({
|
||||
toast.error("No se pudo determinar el destino");
|
||||
} catch (error) {
|
||||
toast.error("Error al guardar cambios");
|
||||
Swal.fire({
|
||||
title: "Error al guardar cambios!",
|
||||
icon: "success",
|
||||
draggable: true,
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
@@ -114,6 +120,7 @@ export default function ProgramSelector({
|
||||
toast.error("Sin programas asignados");
|
||||
} else {
|
||||
toast.error("Error al cargar programas");
|
||||
|
||||
}
|
||||
} else {
|
||||
toast.error("Error inesperado");
|
||||
|
||||
Reference in New Issue
Block a user