Skip to content

Commit

Permalink
Issue #PS-657 fix:ALL screen UI matach with figma
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyas143shinde committed Jun 2, 2024
2 parents 8577ca1 + 87521cf commit f97c17f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions src/components/DateRangePopup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ const DateRangePopup: React.FC<CustomSelectModalProps> = ({
if (index === 4) {
toggleCalendarModal();
}
if (index === 4) {
toggleCalendarModal();
}
};

const onApply = () => {
Expand All @@ -91,6 +94,7 @@ const DateRangePopup: React.FC<CustomSelectModalProps> = ({
console.log(toDate, fromDate);
onDateRangeSelected({ fromDate, toDate });
toggleModal();
toggleModal();
};

const getDateRange = (index: number | null) => {
Expand Down Expand Up @@ -147,6 +151,7 @@ const DateRangePopup: React.FC<CustomSelectModalProps> = ({
toDate,
};
};

const handleCalendarDateChange = (date: Date | [Date, Date] | null) => {
if (Array.isArray(date)) {
setDateRangeArray(date);
Expand Down
2 changes: 1 addition & 1 deletion src/components/LearnerAttendanceStatsListView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const StudentsStatsList: React.FC<StudentsStatsListProps> = ({
<Stack>
<Box
height="60px"
borderTop={`1px solid #D0C5B4`}
borderTop={`1px solid ${theme.palette.warning['A100']}`}
margin="0px"
alignItems={'center'}
// padding="1rem"
Expand Down
4 changes: 2 additions & 2 deletions src/components/LearnerListHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const LearnerListHeader: React.FC<LearListHeaderProps> = ({
<Stack>
{numberOfColumns == 3 ? (
<Box
borderBottom={`1px solid #D0C5B4`}
borderBottom={`1px solid ${theme.palette.warning['A100']}`}
margin="0"
alignItems={'center'}
bgcolor={'#E6E6E6'}
Expand Down Expand Up @@ -56,7 +56,7 @@ const LearnerListHeader: React.FC<LearListHeaderProps> = ({
</Box>
) : (
<Box
borderBottom={`1px solid #E6E6E6`}
borderBottom={`1px solid ${theme.palette.warning['A100']}`}
margin="0"
alignItems={'center'}
bgcolor={'#E6E6E6'}
Expand Down

0 comments on commit f97c17f

Please sign in to comment.