From 2f039f9d34b90e0103f09be40330eea5515a5ad1 Mon Sep 17 00:00:00 2001 From: Hari Dev Date: Mon, 23 Dec 2024 17:49:41 +0530 Subject: [PATCH] chore: Corrected Dropdown toggle issue and added comments in App component --- frontend/index.html | 2 +- frontend/src/App.jsx | 4 ++++ frontend/src/components/Dropdown.jsx | 11 ++++++++--- frontend/src/pages/Home.jsx | 2 ++ frontend/src/pages/Network.jsx | 16 ++++++++++++++++ 5 files changed, 31 insertions(+), 4 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index 0c589ec..19012b5 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -4,7 +4,7 @@ - Vite + React + Talent Platform
diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 9793280..a470878 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -15,7 +15,11 @@ const App = () => { <>
+ {/* Navbar Component */} + + {/* Routing between pages */} + } /> } /> diff --git a/frontend/src/components/Dropdown.jsx b/frontend/src/components/Dropdown.jsx index 8a59de1..3e40df3 100644 --- a/frontend/src/components/Dropdown.jsx +++ b/frontend/src/components/Dropdown.jsx @@ -1,13 +1,18 @@ - +import React ,{useState}from "react"; +import "tailwindcss/tailwind.css"; const Dropdown = () => { + const [visible, setVisible] = useState(false); + + const handleClick = () => { setVisible(!visible); }; + return (
- -