New website nav.

This commit is contained in:
Mike Cao 2025-07-15 03:35:18 -07:00
parent 5e6799a715
commit a534c51b5e
38 changed files with 190 additions and 159 deletions

View file

@ -1,13 +1,12 @@
import { ThemeButton, Row, Button, Icon } from '@umami/react-zen';
import { ThemeButton, Row, Icon } from '@umami/react-zen';
import { LanguageButton } from '@/components/input/LanguageButton';
import { ProfileButton } from '@/components/input/ProfileButton';
import { TeamsButton } from '@/components/input/TeamsButton';
import { WebsiteSelect } from '@/components/input/WebsiteSelect';
import { PanelLeft, Slash } from '@/components/icons';
import { useNavigation, useGlobalState } from '@/components/hooks';
import { Slash } from '@/components/icons';
import { useNavigation } from '@/components/hooks';
export function TopNav() {
const [isCollapsed, setCollapsed] = useGlobalState('sidenav-collapsed');
const { teamId, websiteId, pathname } = useNavigation();
const isSettings = pathname.includes('/settings');
@ -22,11 +21,6 @@ export function TopNav() {
width="100%"
>
<Row alignItems="center">
<Button onPress={() => setCollapsed(!isCollapsed)} variant="quiet">
<Icon>
<PanelLeft />
</Icon>
</Button>
<Row alignItems="center" gap="1">
<TeamsButton />
{websiteId && !isSettings && (