|
|
|
@ -42,13 +42,12 @@ export const Navbar = ({
|
|
|
|
categories: BookmarkCategory[]
|
|
|
|
categories: BookmarkCategory[]
|
|
|
|
}) => {
|
|
|
|
}) => {
|
|
|
|
const pathname = usePathname()
|
|
|
|
const pathname = usePathname()
|
|
|
|
|
|
|
|
const { setSelectedCategory } = useContext(BookmarkCategoryContext)
|
|
|
|
|
|
|
|
|
|
|
|
if (pathname.startsWith('/login') || pathname.startsWith('/signup')) {
|
|
|
|
if (pathname.startsWith('/login') || pathname.startsWith('/signup')) {
|
|
|
|
return <></>
|
|
|
|
return <></>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const { setSelectedCategory } = useContext(BookmarkCategoryContext)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<NextUINavbar
|
|
|
|
<NextUINavbar
|
|
|
|
maxWidth='xl'
|
|
|
|
maxWidth='xl'
|
|
|
|
|