From a7957ac7adde345f7aa3357786ec365ed7d33f53 Mon Sep 17 00:00:00 2001 From: chocoboash Date: Mon, 2 Sep 2024 16:55:08 -0400 Subject: [PATCH] disable homepage registration button --- client/src/pages/Home/Home.jsx | 56 ++++++++++++++++++++++++---------- 1 file changed, 40 insertions(+), 16 deletions(-) diff --git a/client/src/pages/Home/Home.jsx b/client/src/pages/Home/Home.jsx index 2f6538e8..1079f9d8 100644 --- a/client/src/pages/Home/Home.jsx +++ b/client/src/pages/Home/Home.jsx @@ -69,20 +69,48 @@ const HomePageHeader = () => { const HomeHeaderButton = () => { const loggedIn = useSelector(loggedInSelector); + const [isRegistrationOpen, setIsRegistrationOpen] = useState(false); return ( <> - + {isRegistrationOpen || loggedIn ? ( + +
+
+
+
+
+
+ + ) : (
- + )} ); };