mirror of
https://github.com/umami-software/umami.git
synced 2026-02-13 09:05:36 +01:00
New website nav.
This commit is contained in:
parent
5e6799a715
commit
a534c51b5e
38 changed files with 190 additions and 159 deletions
|
|
@ -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 && (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue