From 0839579733847fadbfe9f7d337d02809b540861f Mon Sep 17 00:00:00 2001 From: Valerio Ageno Date: Tue, 3 Dec 2024 19:38:58 +0100 Subject: [PATCH] fix: documentation burger menu --- apps/documentation/src/components/navbar/navbar.tsx | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/apps/documentation/src/components/navbar/navbar.tsx b/apps/documentation/src/components/navbar/navbar.tsx index 4340cab9..d0a60f05 100644 --- a/apps/documentation/src/components/navbar/navbar.tsx +++ b/apps/documentation/src/components/navbar/navbar.tsx @@ -1,6 +1,6 @@ import type { JSX } from 'react' import { AppShell, Burger, Button, Flex } from '@mantine/core' -import { Link, useRouter } from 'tuono' +import { Link } from 'tuono' import Actions from './actions' @@ -10,7 +10,6 @@ interface NavbarProps { } export default function Navbar({ opened, toggle }: NavbarProps): JSX.Element { - const { pathname } = useRouter() return ( @@ -19,14 +18,7 @@ export default function Navbar({ opened, toggle }: NavbarProps): JSX.Element { - {pathname.startsWith('/documentation') && ( - - )} +