Skip to content

Commit

Permalink
REFACTOR: Removed useless code for routing
Browse files Browse the repository at this point in the history
  • Loading branch information
mbeps committed Jan 8, 2024
1 parent 2c55af2 commit d54473e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions components/Navbar/NavbarItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -19,7 +19,6 @@ interface NavbarItemProps {
* @returns (JSX.Element) - A navbar item component
*/
const NavbarItem: React.FC<NavbarItemProps> = ({ to, children }) => {
const router = useRouter();
const pathname = usePathname();
const { isOpen: isOverlayOpen, close: closeOverlay } = useNavbarStore();

Expand Down

0 comments on commit d54473e

Please sign in to comment.