Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/sussy-code/sudo-flix into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
itzCozi committed Mar 26, 2024
2 parents 161c943 + 43dd90a commit 2d6d211
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/setup/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 2d6d211

Please sign in to comment.