From f7b0ccc9ccfc045f98e645e7375f7a2d08e6d4f2 Mon Sep 17 00:00:00 2001 From: M M Date: Thu, 23 May 2024 16:57:58 -0700 Subject: [PATCH] Implemented the navbar dropdown section for the user. --- Client/src/Components/NavBar/index.jsx | 52 ++++++++++++++++++++++---- 1 file changed, 45 insertions(+), 7 deletions(-) diff --git a/Client/src/Components/NavBar/index.jsx b/Client/src/Components/NavBar/index.jsx index f957537f2..c9f08a292 100644 --- a/Client/src/Components/NavBar/index.jsx +++ b/Client/src/Components/NavBar/index.jsx @@ -1,10 +1,48 @@ -import React from 'react' -import './index.css' +import { useState } from 'react'; +import './index.css'; +import Button from '@mui/material/Button'; +import Menu from '@mui/material/Menu'; +import MenuItem from '@mui/material/MenuItem'; const NavBar = () => { - return ( -
NavBar Component
- ) -} + const [anchorEl, setAnchorEl] = useState(null); + const open = Boolean(anchorEl); -export default NavBar \ No newline at end of file + const handleClick = (event) => { + setAnchorEl(event.currentTarget); + }; + + const handleClose = () => { + setAnchorEl(null); + }; + + return ( +
+ + + Profile + Team + Invite Colleagues + Log Out + +
+ ); +}; + +export default NavBar;