Added DialogButton to handle mobile.
This commit is contained in:
1 parent
036748cdeb
commit
40492ec7c4
32 files changed
+2146
-1807
No files matched your search
@@ -73,6 +73,7 @@ export * from './useGlobalState';
|
||||
export * from './useLanguageNames';
|
||||
export * from './useLocale';
|
||||
export * from './useMessages';
|
||||
export * from './useMobile';
|
||||
export * from './useModified';
|
||||
export * from './useNavigation';
|
||||
export * from './usePagedQuery';
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
import { useBreakpoint } from '@umami/react-zen';
|
||||
|
||||
export function useMobile() {
|
||||
const breakpoint = useBreakpoint();
|
||||
const isMobile = ['xs', 'sm', 'md'].includes(breakpoint);
|
||||
|
||||
return { breakpoint, isMobile };
|
||||
}
|
||||
Reference in new issue
Block a user