Merge branch 'Carlos' of repositorio.acatlan.unam.mx:IO/front-AT into Lino
This commit is contained in:
@@ -8,6 +8,7 @@ import { getEquipoByCount } from "@/app/lib/getEquipoByCount";
|
||||
import { getMesaByCount } from "@/app/lib/getMesaByCount";
|
||||
|
||||
import "./asignacion.css";
|
||||
import Swal from "sweetalert2";
|
||||
|
||||
type Props = {
|
||||
inscripcion: any[];
|
||||
@@ -124,6 +125,11 @@ export default function PlaticaGate({ inscripcion, numAcount }: Props) {
|
||||
|
||||
setBitacora([])
|
||||
toast.success("Equipo asignado correctamente");
|
||||
Swal.fire({
|
||||
title: "Equipo asignado correctamente!",
|
||||
icon: "success",
|
||||
draggable: true,
|
||||
});
|
||||
} catch (error) {
|
||||
toast.error("No se pudo asignar el equipo");
|
||||
}
|
||||
|
||||
@@ -133,4 +133,4 @@ export default async function Page(props: {
|
||||
</section>
|
||||
);
|
||||
}
|
||||
//IO
|
||||
|
||||
|
||||
@@ -115,7 +115,7 @@ export default function AsignacionMesas({ idCuenta, inscripcion }: Props) {
|
||||
setBitacora([]);
|
||||
toast.success("Mesa asignada correctamente");
|
||||
Swal.fire({
|
||||
title: "Drag me!",
|
||||
title: "Mesa asignada correctamente!",
|
||||
icon: "success",
|
||||
draggable: true
|
||||
});
|
||||
|
||||
@@ -8,6 +8,7 @@ import SearchEquipo from "./SearchEquipo";
|
||||
import axios from "axios";
|
||||
import Information from "./Global/Information/information";
|
||||
import toast from "react-hot-toast";
|
||||
import Swal from "sweetalert2";
|
||||
|
||||
async function getEquipoId(idEquipo: number) {
|
||||
try {
|
||||
@@ -108,6 +109,11 @@ export default function CheckBoxEquipo({ numAcount, machine }: Props) {
|
||||
);
|
||||
|
||||
toast.success("Tiempo cancelado");
|
||||
Swal.fire({
|
||||
title: "Tiempo cancelado!",
|
||||
icon: "success",
|
||||
draggable: true,
|
||||
});
|
||||
|
||||
if (modo === "Cuenta" && numAcount) {
|
||||
fetchByCuenta(parseInt(numAcount));
|
||||
|
||||
@@ -9,6 +9,7 @@ import toast from "react-hot-toast";
|
||||
import axios from "axios";
|
||||
import { envConfig } from "../lib/config";
|
||||
import { getMesaByCount } from "../lib/getMesaByCount";
|
||||
import Swal from "sweetalert2";
|
||||
|
||||
interface props {
|
||||
numAcount: string | null;
|
||||
@@ -82,7 +83,6 @@ export default function CheckBoxMesa({ numAcount, table }: props) {
|
||||
|
||||
return () => clearInterval(interval);
|
||||
}, [bitacora]);
|
||||
|
||||
|
||||
const handleButton = async (e: React.MouseEvent<HTMLButtonElement>) => {
|
||||
e.preventDefault();
|
||||
@@ -93,6 +93,11 @@ export default function CheckBoxMesa({ numAcount, table }: props) {
|
||||
);
|
||||
|
||||
toast.success("Tiempo cancelado");
|
||||
Swal.fire({
|
||||
title: "Tiempo cancelado!",
|
||||
icon: "success",
|
||||
draggable: true,
|
||||
});
|
||||
|
||||
if (modo === "Cuenta" && numAcount) {
|
||||
fetchByCuenta(parseInt(numAcount));
|
||||
|
||||
Reference in New Issue
Block a user