1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-20 14:37:43 +01:00

Merge back and assign as a todo

This commit is contained in:
Cooper Ransom 2024-03-26 08:17:31 -04:00
parent a5f4fb726a
commit 43dd90a7d8

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 const mediaQuery = window.matchMedia("(max-width: 768px)"); // Adjust the max-width as per your needs
setIsMobile(mediaQuery.matches); setIsMobile(mediaQuery.matches);