This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
admin-panel/src/common/AppLayout/components/Sidebar/useStyles.ts

22 lines
538 B
TypeScript

import { makeStyles } from '@material-ui/core/styles';
import { DRAWER_WIDTH } from './contants';
const useStyles = makeStyles(theme => ({
drawerPaper: {
zIndex: `${theme.zIndex.appBar - 1} !important` as any,
width: DRAWER_WIDTH,
overflowY: 'hidden',
},
root: {
backgroundColor: theme.palette.background.paper,
display: 'flex',
flexDirection: 'column',
height: '100%',
overflowY: 'auto',
'& > *:not(:last-child)': {
margin: theme.spacing(1, 0),
},
},
}));
export default useStyles;