Merge remote-tracking branch 'origin/dev' into US-31-Eliminarreservadeinquilino
This commit is contained in:
commit
ce0f2046b3
|
@ -48,6 +48,7 @@ const Reservations = () => {
|
||||||
const [saveButtonTitle, setSaveButtonTitle] = useState("Registrar")
|
const [saveButtonTitle, setSaveButtonTitle] = useState("Registrar")
|
||||||
const [reservationDialog, setReservationDialog] = useState(false);
|
const [reservationDialog, setReservationDialog] = useState(false);
|
||||||
const [dateMax, setDateMax] = useState();
|
const [dateMax, setDateMax] = useState();
|
||||||
|
const [tenants, setTenants] = useState([]);
|
||||||
|
|
||||||
|
|
||||||
async function tenantsList(id) {
|
async function tenantsList(id) {
|
||||||
|
@ -195,7 +196,7 @@ const Reservations = () => {
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
const confirmDeleteReservation = (reservation) => {
|
const confirmDeleteReservation = (reservation) => {
|
||||||
setReservation(reservation);
|
setReservation(reservation);
|
||||||
setDeleteReservationDialog(true);
|
setDeleteReservationDialog(true);
|
||||||
|
@ -323,7 +324,6 @@ const Reservations = () => {
|
||||||
disabled={!selectedReservations || !selectedReservations.length}
|
disabled={!selectedReservations || !selectedReservations.length}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</React.Fragment>
|
</React.Fragment>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -570,8 +570,7 @@ const Reservations = () => {
|
||||||
today.setDate(today.getDate() - 1)
|
today.setDate(today.getDate() - 1)
|
||||||
return today.toJSON().split('T')[0];
|
return today.toJSON().split('T')[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="grid">
|
<div className="grid">
|
||||||
<div className="col-12">
|
<div className="col-12">
|
||||||
|
@ -855,13 +854,8 @@ const Reservations = () => {
|
||||||
</Dialog>
|
</Dialog>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export default React.memo(Reservations);
|
export default React.memo(Reservations);
|
||||||
|
|
Loading…
Reference in New Issue