From 0ce9d90d8d750bf06fc33f871405cbc7ecbea2b2 Mon Sep 17 00:00:00 2001 From: Emily Neighbour Date: Mon, 17 Mar 2025 13:56:42 +0000 Subject: [PATCH] underline on bars --- src/components/navbar.tsx | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/components/navbar.tsx b/src/components/navbar.tsx index e1b052d..ec645a7 100644 --- a/src/components/navbar.tsx +++ b/src/components/navbar.tsx @@ -2,10 +2,12 @@ import Image from "next/image"; import Link from "next/link"; +import { usePathname } from 'next/navigation' import { useState, useEffect, useRef } from "react"; export default function Navbar() { const [isDropdownOpen, setIsDropdownOpen] = useState(false); + const pathname = usePathname() const dropdownRef = useRef(null); useEffect(() => { @@ -39,25 +41,24 @@ export default function Navbar() { Background Image - {/*

Logo

*/}
- - - -
-

User

+

+ + User + +

);