Skip to content

Commit

Permalink
Merge pull request #1838 from hackforla/1835-fix-filter-modal-date-range
Browse files Browse the repository at this point in the history
1835 Fix Filter modal's date range buttons style not being applied
  • Loading branch information
Brandoncyu authored Oct 3, 2024
2 parents 6a26923 + e70cea1 commit 4cb391e
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 4cb391e

Please sign in to comment.