From e8b8e32794c6dc19ca3d32697b32ac39b2365bf4 Mon Sep 17 00:00:00 2001 From: Emma Date: Thu, 11 Aug 2022 19:42:06 +0100 Subject: [PATCH] Styled the dropdown menu! --- project-app/components/Navbar/NavbarHome.jsx | 12 +++++++----- project-app/components/Navbar/NavbarLogClean.jsx | 16 +++++++++++++--- .../components/Navbar/NavbarStartClean.jsx | 15 ++++++++++++--- 3 files changed, 32 insertions(+), 11 deletions(-) diff --git a/project-app/components/Navbar/NavbarHome.jsx b/project-app/components/Navbar/NavbarHome.jsx index 71ecc56..11f96a8 100644 --- a/project-app/components/Navbar/NavbarHome.jsx +++ b/project-app/components/Navbar/NavbarHome.jsx @@ -29,12 +29,13 @@ const NavbarHome = () => { const menu = ( @@ -46,7 +47,7 @@ const NavbarHome = () => { key: "2", label: ( @@ -57,7 +58,8 @@ const NavbarHome = () => { { key: "3", label: ( - + Join a Clean-up ), @@ -66,7 +68,7 @@ const NavbarHome = () => { key: "4", label: ( @@ -85,7 +87,7 @@ const NavbarHome = () => { return (
-
+
Loading user profile...
diff --git a/project-app/components/Navbar/NavbarLogClean.jsx b/project-app/components/Navbar/NavbarLogClean.jsx index bbf3395..b33ab64 100644 --- a/project-app/components/Navbar/NavbarLogClean.jsx +++ b/project-app/components/Navbar/NavbarLogClean.jsx @@ -30,11 +30,15 @@ const NavbarLogClean = () => { const menu = (
+ About ), @@ -42,12 +46,17 @@ const NavbarLogClean = () => { { key: "2", - label: Join a Clean-up, + label: Join a Clean-up, }, { key: "3", label: ( - + Start a Clean-up ), @@ -55,6 +64,7 @@ const NavbarLogClean = () => { ]} /> ); + const { user, error, isLoading } = useUser(); if (isLoading) diff --git a/project-app/components/Navbar/NavbarStartClean.jsx b/project-app/components/Navbar/NavbarStartClean.jsx index 1930923..8d1da5d 100644 --- a/project-app/components/Navbar/NavbarStartClean.jsx +++ b/project-app/components/Navbar/NavbarStartClean.jsx @@ -29,11 +29,15 @@ const NavbarStartClean = () => { const menu = ( + About ), @@ -41,12 +45,17 @@ const NavbarStartClean = () => { { key: "2", - label: Join a Clean-up, + label: Join a Clean-up, }, { key: "3", label: ( - + Log a Clean-up ),