feat: stop hiding app bar on scroll

This commit is contained in:
Ali BARIN
2022-08-25 16:48:57 +02:00
parent 743b6d6587
commit 6271cedc25
2 changed files with 44 additions and 50 deletions

View File

@@ -8,7 +8,6 @@ import useMediaQuery from '@mui/material/useMediaQuery';
import Badge from '@mui/material/Badge';
import ListItemLink from 'components/ListItemLink';
import HideOnScroll from 'components/HideOnScroll';
import useFormatMessage from 'hooks/useFormatMessage';
import { Drawer as BaseDrawer } from './style';
@@ -47,9 +46,7 @@ export default function Drawer(props: DrawerProps): React.ReactElement {
>
{/* keep the following encapsulating `div` to have `space-between` children */}
<div>
<HideOnScroll unmountOnExit>
<Toolbar />
</HideOnScroll>
<Toolbar />
<List sx={{ py: 0, mt: 3 }}>
{links.map(({ Icon, primary, to }, index) => (