feat: design my apps along with app layout

This commit is contained in:
Ali BARIN
2021-12-14 00:43:35 +01:00
committed by Ömer Faruk Aydın
parent 3785c705ff
commit 6da8557219
13 changed files with 156 additions and 113 deletions

View File

@@ -19,7 +19,7 @@ const iOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigato
export default function Drawer(props: SwipeableDrawerProps) {
const theme = useTheme();
const matchesSmallScreens = useMediaQuery(theme.breakpoints.down('md'));
const matchSmallScreens = useMediaQuery(theme.breakpoints.down('md'), { noSsr: true });
const formatMessage = useFormatMessage();
return (
@@ -27,13 +27,13 @@ export default function Drawer(props: SwipeableDrawerProps) {
{...props}
disableBackdropTransition={!iOS}
disableDiscovery={iOS}
variant={matchesSmallScreens ? 'temporary' : 'permanent'}
variant={matchSmallScreens ? 'temporary' : 'permanent'}
>
<HideOnScroll unmountOnExit>
<Toolbar />
</HideOnScroll>
<List>
<List sx={{ py: 0, mt: 3 }}>
<ListItemLink
icon={<SwapCallsIcon htmlColor={theme.palette.primary.main} />}
primary={formatMessage('drawer.flows')}