From 2a521fec64861c269259121c72fe190d821d3972 Mon Sep 17 00:00:00 2001 From: harshmishra19 Date: Tue, 14 May 2024 16:36:24 +0530 Subject: [PATCH] Added icons --- src/components/Navbar.jsx | 58 +++++++++++++++++---------------------- 1 file changed, 25 insertions(+), 33 deletions(-) diff --git a/src/components/Navbar.jsx b/src/components/Navbar.jsx index 2a9c178..83134e1 100644 --- a/src/components/Navbar.jsx +++ b/src/components/Navbar.jsx @@ -1,46 +1,38 @@ -import React, { useState } from "react"; + import React from "react"; import { NavLink, useLocation } from "react-router-dom"; const Navbar = () => { const location = useLocation(); - const [isOpen, setIsOpen] = useState(false); - - const toggleMenu = () => { - setIsOpen(!isOpen); - }; - - const closeMenu = () => { - setIsOpen(false); - }; const isActive = (path) => location.pathname === path ? 'text-[#00bfff] underline' : 'text-white'; return ( + ); }; - export default Navbar;