mirror of
https://github.com/tuono-labs/tuono
synced 2026-07-29 22:02:46 -07:00
fix: documentation burger menu
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import type { JSX } from 'react'
|
import type { JSX } from 'react'
|
||||||
import { AppShell, Burger, Button, Flex } from '@mantine/core'
|
import { AppShell, Burger, Button, Flex } from '@mantine/core'
|
||||||
import { Link, useRouter } from 'tuono'
|
import { Link } from 'tuono'
|
||||||
|
|
||||||
import Actions from './actions'
|
import Actions from './actions'
|
||||||
|
|
||||||
@@ -10,7 +10,6 @@ interface NavbarProps {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export default function Navbar({ opened, toggle }: NavbarProps): JSX.Element {
|
export default function Navbar({ opened, toggle }: NavbarProps): JSX.Element {
|
||||||
const { pathname } = useRouter()
|
|
||||||
return (
|
return (
|
||||||
<AppShell.Header p="sm">
|
<AppShell.Header p="sm">
|
||||||
<Flex justify="space-between">
|
<Flex justify="space-between">
|
||||||
@@ -19,14 +18,7 @@ export default function Navbar({ opened, toggle }: NavbarProps): JSX.Element {
|
|||||||
</Button>
|
</Button>
|
||||||
<Flex align="center" gap={8}>
|
<Flex align="center" gap={8}>
|
||||||
<Actions />
|
<Actions />
|
||||||
{pathname.startsWith('/documentation') && (
|
<Burger opened={opened} onClick={toggle} hiddenFrom="sm" size="sm" />
|
||||||
<Burger
|
|
||||||
opened={opened}
|
|
||||||
onClick={toggle}
|
|
||||||
hiddenFrom="sm"
|
|
||||||
size="sm"
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
</Flex>
|
</Flex>
|
||||||
</Flex>
|
</Flex>
|
||||||
</AppShell.Header>
|
</AppShell.Header>
|
||||||
|
|||||||
Reference in New Issue
Block a user