diff --git a/apps/web/src/components/SidebarNavigationMenu.tsx b/apps/web/src/components/SidebarNavigationMenu.tsx index 26bda496f..d2cfd260e 100644 --- a/apps/web/src/components/SidebarNavigationMenu.tsx +++ b/apps/web/src/components/SidebarNavigationMenu.tsx @@ -1,4 +1,5 @@ -import { useEffect, useState } from "react"; +import { useCallback, useEffect, useState } from "react"; +import Link from "next/link"; import { usePathname } from "next/navigation"; import { ChevronDownIcon } from "@heroicons/react/24/outline"; import { Bars3Icon } from "@heroicons/react/24/solid"; @@ -16,14 +17,14 @@ import { isExpandibleNavigationItem, NAVIGATION_ITEMS } from "./content"; export function SidebarNavigationMenu({ className }: { className?: string }) { const [open, setOpen] = useState(false); + const openSidebar = useCallback(() => setOpen(true), []); + + const closeSidebar = useCallback(() => setOpen(false), []); + return (
-