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

@@ -29,9 +29,7 @@ export default function AppBar(props: AppBarProps): React.ReactElement {
const { drawerOpen, onDrawerOpen, onDrawerClose, maxWidth = false } = props;
const theme = useTheme();
const matchSmallScreens = useMediaQuery(theme.breakpoints.down('md'), {
noSsr: true,
});
const matchSmallScreens = useMediaQuery(theme.breakpoints.down('md'));
const [accountMenuAnchorElement, setAccountMenuAnchorElement] =
React.useState<null | HTMLElement>(null);