- Rename SideMenu to NavMenu with visible group title labels and selected item highlighting - Update react-zen to 0.242.0 and fix responsive breakpoints (xs -> base) - Style floating tooltips with inverted background across WorldMap, charts, and WeeklyTraffic - Add CSS variables for primary color and use IconLabel consistently - Remove stray console.log from LoadingPanel Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
10 lines
283 B
TypeScript
10 lines
283 B
TypeScript
import { useBreakpoint } from '@umami/react-zen';
|
|
|
|
export function useMobile() {
|
|
const breakpoint = useBreakpoint();
|
|
const isMobile = ['base', 'sm', 'md'].includes(breakpoint);
|
|
const isPhone = ['base', 'sm'].includes(breakpoint);
|
|
|
|
return { breakpoint, isMobile, isPhone };
|
|
}
|