From f2f72a97c64619488cf75b9f1c2431fa56f91b67 Mon Sep 17 00:00:00 2001 From: Khushi Pushkar Date: Tue, 30 Jul 2024 00:36:29 +0530 Subject: [PATCH 1/2] Fixed Navbar Content --- src/components/Navbar/Navbar.jsx | 82 +++++++++++++++++++++++--------- 1 file changed, 59 insertions(+), 23 deletions(-) diff --git a/src/components/Navbar/Navbar.jsx b/src/components/Navbar/Navbar.jsx index 5e4a501..014d7c9 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 ( - <> - - ); };