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:
parent
a5f4fb726a
commit
43dd90a7d8
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue