-
-
-
- {user.type !== "corporate" && (
-
-
-
- )}
-
-
-
-
-
- moment(date).isSameOrBefore(moment(new Date()))}
- onChange={([initialDate, finalDate]: [Date, Date]) => {
- setStartDate(initialDate ?? moment("01/01/2023").toDate());
- if (finalDate) {
- // basicly selecting a final day works as if I'm selecting the first
- // minute of that day. this way it covers the whole day
- setEndDate(moment(finalDate).endOf("day").toDate());
- return;
- }
- setEndDate(null);
- }}
- />
-
- {user.type !== "corporate" && (
-
-
-
- )}
-
-
-
-
- {renderTable(table as Table