diff --git a/src/components/DateRangePopup.tsx b/src/components/DateRangePopup.tsx index 68a3668f..7fc79787 100644 --- a/src/components/DateRangePopup.tsx +++ b/src/components/DateRangePopup.tsx @@ -82,6 +82,9 @@ const DateRangePopup: React.FC = ({ if (index === 4) { toggleCalendarModal(); } + if (index === 4) { + toggleCalendarModal(); + } }; const onApply = () => { @@ -91,6 +94,7 @@ const DateRangePopup: React.FC = ({ console.log(toDate, fromDate); onDateRangeSelected({ fromDate, toDate }); toggleModal(); + toggleModal(); }; const getDateRange = (index: number | null) => { @@ -147,6 +151,7 @@ const DateRangePopup: React.FC = ({ toDate, }; }; + const handleCalendarDateChange = (date: Date | [Date, Date] | null) => { if (Array.isArray(date)) { setDateRangeArray(date); diff --git a/src/components/LearnerAttendanceStatsListView.tsx b/src/components/LearnerAttendanceStatsListView.tsx index c666c876..6f4baada 100644 --- a/src/components/LearnerAttendanceStatsListView.tsx +++ b/src/components/LearnerAttendanceStatsListView.tsx @@ -125,7 +125,7 @@ const StudentsStatsList: React.FC = ({ = ({ {numberOfColumns == 3 ? ( = ({ ) : (