From 914e5881fe130282ebe61e9819422903d3febcb3 Mon Sep 17 00:00:00 2001 From: Klesti Selimaj Date: Thu, 12 Feb 2026 14:30:03 +0100 Subject: [PATCH] Navbar selected link --- src/components/layout/Navbar.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/components/layout/Navbar.tsx b/src/components/layout/Navbar.tsx index d6b0494..932a426 100644 --- a/src/components/layout/Navbar.tsx +++ b/src/components/layout/Navbar.tsx @@ -1,3 +1,5 @@ +"use client"; + import Link from "next/link"; import { Button } from "../ui/button"; import { @@ -8,6 +10,8 @@ import { WalletIcon, } from "lucide-react"; import { SolanaLogo } from "../logos"; +import { cn } from "@/lib/utils"; +import { usePathname } from "next/navigation"; const links = [ { @@ -23,6 +27,7 @@ const links = [ export default function Navbar() { const personalItemClass = "rounded-full bg-card p-2! aspect-square group hover:bg-accent/20 hover:text-accent"; + const pathname = usePathname(); return (