From d54473eefe04b7f6e485785d6d251a6143149321 Mon Sep 17 00:00:00 2001 From: Maruf Bepary Date: Mon, 8 Jan 2024 16:30:19 +0000 Subject: [PATCH] REFACTOR: Removed useless code for routing --- components/Navbar/NavbarItem.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/Navbar/NavbarItem.tsx b/components/Navbar/NavbarItem.tsx index 7366884b..eaa8df3d 100644 --- a/components/Navbar/NavbarItem.tsx +++ b/components/Navbar/NavbarItem.tsx @@ -2,7 +2,7 @@ import { useNavbarStore } from "@/hooks/useNavbarStore"; import Link from "next/link"; -import { usePathname, useRouter } from "next/navigation"; +import { usePathname } from "next/navigation"; import React from "react"; interface NavbarItemProps { @@ -19,7 +19,6 @@ interface NavbarItemProps { * @returns (JSX.Element) - A navbar item component */ const NavbarItem: React.FC = ({ to, children }) => { - const router = useRouter(); const pathname = usePathname(); const { isOpen: isOverlayOpen, close: closeOverlay } = useNavbarStore();