From 56e6dba243c5810281bdee2838fc3376cf5bbf00 Mon Sep 17 00:00:00 2001 From: Leo dev Date: Mon, 2 Feb 2026 15:18:47 +0100 Subject: [PATCH] Runs page in navbar --- src/components/app/NavLink.tsx | 29 ----------------------------- src/components/app/Navbar.tsx | 10 +++++----- 2 files changed, 5 insertions(+), 34 deletions(-) delete mode 100644 src/components/app/NavLink.tsx 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,