fix date picker

This commit is contained in:
Blake Blackshear
2022-03-11 07:32:36 -06:00
parent 1d8f1b24a9
commit deb3536cb2
3 changed files with 162 additions and 142 deletions

View File

@@ -5,7 +5,7 @@ import ArrowRightDouble from '../icons/ArrowRightDouble';
const todayTimestamp = new Date().setHours(0, 0, 0, 0).valueOf();
const Calendar = ({ onChange, calendarRef, close }) => {
const Calendar = ({ onChange, calendarRef, close, dateRange }) => {
const keyRef = useRef([]);
const date = new Date();
@@ -36,7 +36,7 @@ const Calendar = ({ onChange, calendarRef, close }) => {
year,
month,
selectedDay: null,
timeRange: { before: null, after: null },
timeRange: dateRange,
monthDetails: null,
});