1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-20 14:37:43 +01:00
This commit is contained in:
Cooper Ransom 2024-03-26 12:33:24 -04:00
commit 2d6d211312

View file

@ -39,6 +39,7 @@ export function Layout(props: { children: ReactNode }) {
}
});
// Instead use isMobile like this `const { isMobile } = useIsMobile();`
const mediaQuery = window.matchMedia("(max-width: 768px)"); // Adjust the max-width as per your needs
setIsMobile(mediaQuery.matches);