diff --git a/src/components/Navbar/Navbar.jsx b/src/components/Navbar/Navbar.jsx index 5e4a501..913fe62 100644 --- a/src/components/Navbar/Navbar.jsx +++ b/src/components/Navbar/Navbar.jsx @@ -1,4 +1,4 @@ -import { useState, useEffect } from "react"; +import { useState } from "react"; import { FaBars, FaTimes } from "react-icons/fa"; import { Nav, NavbarContainer, NavImg, NavMenu, NavItem, NavLinks, MobileIcon, NavLogo, SubLogo, Dropdown, DropdownContent, ButtonDropdown } from "./NavbarElements"; import { Link, useNavigate } from "react-router-dom"; @@ -10,8 +10,6 @@ import styled from "styled-components"; import ProgressBar from "./Progressbar"; - - const Button = styled.button` padding: 5px 24px; font-style: normal; @@ -42,7 +40,7 @@ const Navbar = () => { }; const handleLogoClick = () => { - setIsOpen(!isOpen); + setIsOpen(false); window.scrollTo(0, 0); }; @@ -64,16 +62,8 @@ const Navbar = () => { }; return ( - <> -