Skip to content

Commit

Permalink
Fix Filter modal's date range buttons style not being applied
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandoncyu committed Oct 1, 2024
1 parent 6a26923 commit e70cea1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
12 changes: 1 addition & 11 deletions components/DateSelector/DateSelector.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
import Typography from '@mui/material/Typography';
import ArrowToolTip from '@components/common/ArrowToolTip';
import options from './options';
import makeStyles from '@mui/styles/makeStyles';
import useStyles from './useStyles';
import DateRanges from './DateRanges';

const dateFormat = 'YYYY-MM-DD';
Expand All @@ -22,16 +22,6 @@ function DateSelector({
updateEndDate,
}) {
const [expanded, setExpanded] = useState(false);
const useStyles = makeStyles(theme => ({
iconStyle: {
verticalAlign: 'middle',
},
header: {
fontSize: '12.47px',
fontWeight: theme.typography.fontWeightMedium,
marginBottom: '8px',
},
}));
const classes = useStyles();

const handleOptionSelect = optionDates => {
Expand Down
8 changes: 8 additions & 0 deletions components/DateSelector/useStyles.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ const useStyles = makeStyles(theme => ({
tooltipParagraph: {
margin: '1px',
},
iconStyle: {
verticalAlign: 'middle',
},
header: {
fontSize: '12.47px',
fontWeight: theme.typography.fontWeightMedium,
marginBottom: '8px',
},
}));

export default useStyles;

0 comments on commit e70cea1

Please sign in to comment.