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);