From 86e678eb9f7eca508a7ec210e7f292fc880d9566 Mon Sep 17 00:00:00 2001 From: Mohit Parmar <100152343+mohitparmar1@users.noreply.github.com> Date: Tue, 24 Oct 2023 13:31:27 +0530 Subject: [PATCH] Fixed UI error on navbar hover effect --- Technodes/src/components/Navbar.jsx | 131 ++++++++++++++-------------- 1 file changed, 66 insertions(+), 65 deletions(-) diff --git a/Technodes/src/components/Navbar.jsx b/Technodes/src/components/Navbar.jsx index 93b321b..7b5b1c7 100644 --- a/Technodes/src/components/Navbar.jsx +++ b/Technodes/src/components/Navbar.jsx @@ -4,22 +4,21 @@ import { Link } from "react-router-dom"; export default function Navbar() { const [isDropdownOpen, setDropdownOpen] = useState(false); - const [Toggle , setToggle] = useState(false); - + const [Toggle, setToggle] = useState(false); const toggleDropdown = () => { setDropdownOpen(!isDropdownOpen); }; - const toggleMenu =() =>{ + const toggleMenu = () => { setToggle(!Toggle); - } + }; return (