fixed checkbox equipo and mesa and delete fetch

This commit is contained in:
2026-02-23 12:23:46 -06:00
parent a0cd2da717
commit d0b8cc3062
3 changed files with 20 additions and 43 deletions
+3 -2
View File
@@ -108,7 +108,7 @@ export default function CheckBoxEquipo({ numAcount, machine }: Props) {
{ tiempo_asignado: minutos },
);
Swal.fire({
title: "Tiempo cancelado Correctamente!",
icon: "success",
@@ -153,7 +153,7 @@ export default function CheckBoxEquipo({ numAcount, machine }: Props) {
{modo === "Cuenta" && <SearchUser value={numAcount ?? null} />}
{modo === "Equipo" && <SearchEquipo value={machine ?? null} />}
<h2 style={{marginTop:"10px"}}>{error}</h2>
<h2 style={{ marginTop: "10px" }}>{error}</h2>
{bitacora && (
<>
@@ -167,6 +167,7 @@ export default function CheckBoxEquipo({ numAcount, machine }: Props) {
className="button buttonSearch"
style={{ marginTop: "1rem" }}
onClick={handleButton}
disabled={minutos ? false : true}
>
Cancelar tiempo
</button>
+1 -1
View File
@@ -153,7 +153,7 @@ export default function CheckBoxMesa({ numAcount, table }: props) {
className="button buttonSearch"
style={{ marginTop: "1rem" }}
onClick={handleButton}
disabled={loading}
disabled={loading || minutos ? false : true}
>
Cancelar tiempo
</button>