refactor: default noSsr to true in useMediaQuery

This commit is contained in:
Ali BARIN
2023-03-08 18:35:51 +00:00
parent bd2ad1d7a1
commit 12e34013f8
7 changed files with 11 additions and 18 deletions

View File

@@ -49,9 +49,7 @@ export default function SettingsLayout({
}: SettingsLayoutProps): React.ReactElement {
const { isCloud } = useAutomatischInfo();
const theme = useTheme();
const matchSmallScreens = useMediaQuery(theme.breakpoints.down('lg'), {
noSsr: true,
});
const matchSmallScreens = useMediaQuery(theme.breakpoints.down('lg'));
const [isDrawerOpen, setDrawerOpen] = React.useState(!matchSmallScreens);
const openDrawer = () => setDrawerOpen(true);