From b9995cb257800b14dfcd1856f33894f430000b85 Mon Sep 17 00:00:00 2001 From: Haziq Khairi Date: Thu, 11 Jan 2024 20:31:42 +0800 Subject: [PATCH] feat: add icon at profile dropdown --- src/components/Navbar.jsx | 104 +++++++++++++++++++++++++++----------- 1 file changed, 74 insertions(+), 30 deletions(-) diff --git a/src/components/Navbar.jsx b/src/components/Navbar.jsx index cb7724e..c3472a5 100644 --- a/src/components/Navbar.jsx +++ b/src/components/Navbar.jsx @@ -12,7 +12,15 @@ import { AutocompleteItem, } from '@nextui-org/react'; import { Link, useNavigate } from 'react-router-dom'; -import { FaSearch } from 'react-icons/fa'; +import { + FaSearch, + FaCog, + FaHeart, + FaBell, + FaQuestionCircle, + FaCommentDots, + FaSignOutAlt, +} from 'react-icons/fa'; import { allLists } from '../data/list'; import logo from '../assets/logo.png'; @@ -104,35 +112,71 @@ const SearchAutocomplete = ({ allLists }) => { ); }; -const UserProfileDropdown = () => ( - - - - - - -

Signed in as

-

hafizsuip@gmail.com

-
- Settings - Favourites - Notifications - Help & Support - Feedback - - Log Out - -
-
-); +const UserProfileDropdown = () => { + const iconClasses = 'text-sm'; + + return ( + + + + + + +
+

Signed in as

+

hafizsuip@gmail.com

+
+
+ } + > + Settings + + } + > + Favourites + + } + > + Notifications + + } + > + Help & Support + + } + > + Feedback + + } + > + Log Out + +
+
+ ); +}; const NavbarComponent = () => { const allItems = Object.values(allLists).flat();