add improved truncation between tablets and phones
This commit is contained in:
1 parent
74972bccb1
commit
6eefb4173c
2 files changed
+4
-3
No files matched your search
@@ -3,6 +3,7 @@ import { useBreakpoint } from '@umami/react-zen';
|
||||
export function useMobile() {
|
||||
const breakpoint = useBreakpoint();
|
||||
const isMobile = ['xs', 'sm', 'md'].includes(breakpoint);
|
||||
const isPhone = ['xs', 'sm'].includes(breakpoint);
|
||||
|
||||
return { breakpoint, isMobile };
|
||||
return { breakpoint, isMobile, isPhone };
|
||||
}
|
||||
Reference in new issue
Block a user