fixed checkbox equipo and mesa and delete fetch
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user