Merge branch 'dev' into US-30-ReservarÁreacomúnparainquilinoV2

This commit is contained in:
Eduardo Quiros 2022-08-28 12:16:02 +00:00 committed by GitHub
commit 395086122d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 14 deletions

View File

@ -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) {
@ -93,9 +94,7 @@ const Reservations = () => {
(val) => val.status != -1,
)
data.map((item) => {
item.date = formatDateString(item.date)
if (item.status == '1') {
item.status_text = 'Activo';
} else if (item.status == '0') {
@ -224,7 +223,6 @@ const Reservations = () => {
setSubmitted(false);
};
const leftToolbarTemplate = () => {
return (
<React.Fragment>
@ -243,7 +241,6 @@ const Reservations = () => {
disabled={!selectedReservations || !selectedReservations.length}
/>
</div>
</React.Fragment>
);
};
@ -457,7 +454,6 @@ const Reservations = () => {
return today.toJSON().split('T')[0];
}
return (
<div className="grid">
<div className="col-12">
@ -698,16 +694,10 @@ const Reservations = () => {
</div>
)}
</Dialog>
</div>
</div>
</div>
);
}
export default React.memo(Reservations);