diff --git a/web-ui/web-react/src/components/Reservaciones.js b/web-ui/web-react/src/components/Reservaciones.js index 2eb9a73d..9aa6db02 100644 --- a/web-ui/web-react/src/components/Reservaciones.js +++ b/web-ui/web-react/src/components/Reservaciones.js @@ -48,6 +48,7 @@ const Reservations = () => { const [saveButtonTitle, setSaveButtonTitle] = useState("Registrar") const [reservationDialog, setReservationDialog] = useState(false); const [dateMax, setDateMax] = useState(); + const [tenants, setTenants] = useState([]); async function tenantsList(id) { @@ -195,7 +196,7 @@ const Reservations = () => { ); }; - + const confirmDeleteReservation = (reservation) => { setReservation(reservation); setDeleteReservationDialog(true); @@ -323,7 +324,6 @@ const Reservations = () => { disabled={!selectedReservations || !selectedReservations.length} /> - ); }; @@ -570,8 +570,7 @@ const Reservations = () => { today.setDate(today.getDate() - 1) return today.toJSON().split('T')[0]; } - - + return (