Co-authored-by: ConnorYoh <[email protected]>
Co-authored-by: Connor Yoh <[email protected]>
Co-authored-by: EthanHealy01 <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
Anthony Stirling
2026-03-25 11:00:40 +00:00
committed by GitHub
co-authored by ConnorYoh Connor Yoh EthanHealy01 Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
parent 47cad0a131
commit 28613caf8a
181 changed files with 25715 additions and 124 deletions
+8
View File
@@ -7,3 +7,11 @@ import { useMediaQuery } from '@mantine/hooks';
export const useIsMobile = (): boolean => {
return useMediaQuery('(max-width: 1024px)') ?? false;
};
/**
* Custom hook to detect phone-sized viewport (≤768px)
* Use for layouts that need a more compact single-column arrangement
*/
export const useIsPhone = (): boolean => {
return useMediaQuery('(max-width: 768px)') ?? false;
};