Skip to content

Commit

Permalink
Merge pull request #257 from Rushikesh-Sonawane99/shiksha-2.0
Browse files Browse the repository at this point in the history
Issue #PS-626 chore: Added color for custom range text on custom date range modal as per figma
  • Loading branch information
itsvick authored Jun 6, 2024
2 parents 0cbc05c + a948db8 commit b229f14
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/DateRangePopup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import ListItemIcon from '@mui/material/ListItemIcon';
import MonthCalender from './MonthCalender';
import WestIcon from '@mui/icons-material/West';
import { useTranslation } from 'next-i18next';
import { useTheme } from '@mui/material/styles';

const modalStyle = {
position: 'absolute',
Expand Down Expand Up @@ -87,6 +88,7 @@ const DateRangePopup: React.FC<CustomSelectModalProps> = ({
const toggleCalendarModal = () =>
setIsCalenderModalOpen(!isCalendarModalOpen);
const { t } = useTranslation();
const theme = useTheme<any>();

const handleMenuItemClick = (index: number, item: string) => {
setSelectedIndex(index);
Expand Down Expand Up @@ -241,7 +243,7 @@ const DateRangePopup: React.FC<CustomSelectModalProps> = ({
</Grid>
</Box>
<Divider />
<MenuList className="customRange" sx={{ margin: '0 9px' }} dense>
<MenuList className="customRange" sx={{ margin: '0 9px'}} dense>
{menuItems.map((item, index) => (
<MenuItem
key={index}
Expand All @@ -252,6 +254,7 @@ const DateRangePopup: React.FC<CustomSelectModalProps> = ({
alignItems: 'center',
paddingLeft: '32px',
backgroundColor: 'transparent',
color: index === 4 ? theme.palette.secondary.main : 'inherit',
'&:hover': {
backgroundColor: 'transparent',
color: '#0D599E'
Expand Down

0 comments on commit b229f14

Please sign in to comment.