diff --git a/src/components/app/NavLink.tsx b/src/components/app/NavLink.tsx deleted file mode 100644 index 39daaa8..0000000 --- a/src/components/app/NavLink.tsx +++ /dev/null @@ -1,29 +0,0 @@ -import Link, { LinkProps } from "next/link"; -import { forwardRef } from "react"; -import { cn } from "@/lib/utils"; -import { usePathname } from "next/navigation"; - -interface NavLinkCompatProps extends Omit { - className?: string; - activeClassName?: string; - pendingClassName?: string; -} - -const NavLink = forwardRef( - ({ className, activeClassName, pendingClassName, href, ...props }, ref) => { - const pathname = usePathname(); - const isActive = pathname === href; - const isPending = false; - - return ( - - ); - } -); - -NavLink.displayName = "NavLink"; diff --git a/src/components/app/Navbar.tsx b/src/components/app/Navbar.tsx index d8277b4..5906f8c 100644 --- a/src/components/app/Navbar.tsx +++ b/src/components/app/Navbar.tsx @@ -11,16 +11,16 @@ const navs = [ icon: Zap, name: "Problems", }, - { - link: "/run", - icon: Timer, - name: "Run", - }, { link: "/leaderboards", icon: Trophy, name: "Leaderboards", }, + { + link: "/runs", + icon: Timer, + name: "Runs", + }, { link: "/profile", icon: User,