I keep getting this error when i try using breakpoints, and it just happens when i add .down after breakpoints i tried to wrap the component in a ThemeProvider but still get the same error
const useStyles = makeStyles((theme) => ({
container: {
display: 'flex',
[theme.breakpoints.down('md')]: {
flexDirection: 'column',
alignItems: 'center',
},
},
sidebar: {
width: '30%',
[theme.breakpoints('md')]: {
width: '100%',
},
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
marginTop: 25,
borderRight: '2px solid grey',
},
heading: {
fontWeight: 'bold',
marginBottom: 20,
fontFamily: 'Montserrat',
},
}))