mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-20 14:37:43 +01:00
Merge branch 'dev' of https://github.com/sussy-code/sudo-flix into dev
This commit is contained in:
commit
2d6d211312
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