Skip to content

Commit

Permalink
Merge pull request #267 from shreyas1434shinde/BugFixes
Browse files Browse the repository at this point in the history
Issue #PS-657 fix:Tracker Bug fixes
  • Loading branch information
itsvick authored Jun 10, 2024
2 parents f6e8ff2 + bf91130 commit 8c5d877
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 12 deletions.
10 changes: 5 additions & 5 deletions src/components/DateRangePopup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -233,12 +233,12 @@ const DateRangePopup: React.FC<CustomSelectModalProps> = ({
<Box>
<Grid sx={{ padding: '20px 20px 5px' }} container>
<Grid item xs={6}>
<Typography textAlign={'left'}>
<Typography className="text4D" textAlign={'left'}>
{t('COMMON.DATE_RANGE')}
</Typography>
</Grid>
<Grid item xs={6} textAlign={'right'}>
<CloseIcon onClick={toggleModal} />
<CloseIcon className="text4D" onClick={toggleModal} />
</Grid>
</Grid>
</Box>
Expand All @@ -254,10 +254,9 @@ const DateRangePopup: React.FC<CustomSelectModalProps> = ({
alignItems: 'center',
paddingLeft: '32px',
backgroundColor: 'transparent',
color: index === 4 ? theme.palette.secondary.main : 'inherit',
color: index === 4 ? '#4D4639' : 'inherit',
'&:hover': {
backgroundColor: 'transparent',
color: '#0D599E',
},
}}
>
Expand All @@ -268,8 +267,9 @@ const DateRangePopup: React.FC<CustomSelectModalProps> = ({
left: '8px',
minWidth: 'auto',
}}
className="text4D"
>
<Check fontSize="small" />
<Check className="text4D" fontSize="small" />
</ListItemIcon>
)}
{item}
Expand Down
2 changes: 1 addition & 1 deletion src/components/LearnerModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const LearnerModal = ({
/>
<Box sx={{ padding: ' 25px 20px' }}>
<Box
style={{ border: '1px solid gray', borderRadius: '16px' }}
style={{ border: '1px solid #D0C5B4', borderRadius: '16px' }}
p={2}
>
<Grid container spacing={2}>
Expand Down
9 changes: 7 additions & 2 deletions src/components/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,13 @@ const ModalComponent: React.FC<ModalProps> = ({
/>
</Box>
<Typography variant="h6">{SubHeading}</Typography>
<Box mt={2}>{children}</Box>
<Box mt={2} p={'0 20px 20px'} display="flex" justifyContent="flex-end">
<Box mt={0.6}>{children}</Box>
<Box
mt={2}
p={'4px 20px 20px'}
display="flex"
justifyContent="flex-end"
>
<ButtonFunctional
handleClickButton={handleApplySort}
buttonName={t('COMMON.APPLY')}
Expand Down
4 changes: 2 additions & 2 deletions src/components/SortingModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const SortingModal: React.FC<sortCardProps> = ({
>
<Divider
style={{
backgroundColor: theme.palette.warning['400'],
backgroundColor: theme.palette.warning.A100,
}}
/>
<Grid container sx={{ padding: '10px 20px 0' }} spacing={2}>
Expand Down Expand Up @@ -253,7 +253,7 @@ const SortingModal: React.FC<sortCardProps> = ({
</Grid>
<Divider
style={{
backgroundColor: theme.palette.warning['400'],
backgroundColor: theme.palette.warning.A100,
marginBottom: '10px',
marginTop: '15px',
}}
Expand Down
3 changes: 1 addition & 2 deletions src/pages/profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -534,8 +534,7 @@ const TeacherProfile = () => {
flex: '1',
textAlign: 'center',
color: theme.palette.warning.A200,
border: `1px solid ${theme.palette.warning.A200}`,
borderColor: theme.palette.warning['A100'],
border: `1px solid #4D4639`,
}}
onClick={handleOpen}
>
Expand Down
3 changes: 3 additions & 0 deletions src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -663,3 +663,6 @@ main {
justify-content: center !important;
align-items: center !important;
}
.text4D {
color: #4d4639 !important;
}

0 comments on commit 8c5d877

Please sign in to comment.