mirror of
https://github.com/umami-software/umami.git
synced 2026-02-12 16:45:35 +01:00
Updated nav.
This commit is contained in:
parent
25f96f6b6b
commit
a025fc9552
11 changed files with 971 additions and 1005 deletions
|
|
@ -17,10 +17,11 @@ import {
|
|||
} from '@/components/icons';
|
||||
import { useMessages, useNavigation } from '@/components/hooks';
|
||||
import Link from 'next/link';
|
||||
import { WebsiteSelect } from '@/components/input/WebsiteSelect';
|
||||
|
||||
export function WebsiteNav({ websiteId }: { websiteId: string }) {
|
||||
const { formatMessage, labels } = useMessages();
|
||||
const { pathname, renderUrl } = useNavigation();
|
||||
const { pathname, renderUrl, teamId } = useNavigation();
|
||||
|
||||
const links = [
|
||||
{
|
||||
|
|
@ -135,7 +136,8 @@ export function WebsiteNav({ websiteId }: { websiteId: string }) {
|
|||
|
||||
return (
|
||||
<Column gap padding width="240px" border="left" overflowY="auto">
|
||||
<NavMenu highlightColor="2">
|
||||
<WebsiteSelect buttonProps={{ variant: 'quiet' }} websiteId={websiteId} teamId={teamId} />
|
||||
<NavMenu muteItems={false}>
|
||||
{links.map(({ label, items }) => {
|
||||
return (
|
||||
<NavMenuGroup title={label} key={label} gap="1">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue