Skip to content

Commit 4cb391e

Browse files
authored
Merge pull request #1838 from hackforla/1835-fix-filter-modal-date-range
1835 Fix Filter modal's date range buttons style not being applied
2 parents 6a26923 + e70cea1 commit 4cb391e

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

components/DateSelector/DateSelector.jsx

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
import Typography from '@mui/material/Typography';
1212
import ArrowToolTip from '@components/common/ArrowToolTip';
1313
import options from './options';
14-
import makeStyles from '@mui/styles/makeStyles';
14+
import useStyles from './useStyles';
1515
import DateRanges from './DateRanges';
1616

1717
const dateFormat = 'YYYY-MM-DD';
@@ -22,16 +22,6 @@ function DateSelector({
2222
updateEndDate,
2323
}) {
2424
const [expanded, setExpanded] = useState(false);
25-
const useStyles = makeStyles(theme => ({
26-
iconStyle: {
27-
verticalAlign: 'middle',
28-
},
29-
header: {
30-
fontSize: '12.47px',
31-
fontWeight: theme.typography.fontWeightMedium,
32-
marginBottom: '8px',
33-
},
34-
}));
3525
const classes = useStyles();
3626

3727
const handleOptionSelect = optionDates => {

components/DateSelector/useStyles.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@ const useStyles = makeStyles(theme => ({
4343
tooltipParagraph: {
4444
margin: '1px',
4545
},
46+
iconStyle: {
47+
verticalAlign: 'middle',
48+
},
49+
header: {
50+
fontSize: '12.47px',
51+
fontWeight: theme.typography.fontWeightMedium,
52+
marginBottom: '8px',
53+
},
4654
}));
4755

4856
export default useStyles;

0 commit comments

Comments
 (0)