From 5f312612ac916921e306f3cf98b5d5b085880f60 Mon Sep 17 00:00:00 2001 From: Adarsh Dubey <84132532+inclinedadarsh@users.noreply.github.com> Date: Fri, 29 Mar 2024 11:25:46 +0530 Subject: [PATCH] fix: remove Team and Partners section Add conditional logic for displaying CTA in navbar remove CTA from the navbar remove Team section remove Team from the navbar --- src/components/layout/Navbar/index.jsx | 18 ++++++++++-------- src/components/layout/index.jsx | 5 +++-- src/pages/HomePage.jsx | 4 ++-- src/pages/content.js | 8 ++++---- 4 files changed, 19 insertions(+), 16 deletions(-) diff --git a/src/components/layout/Navbar/index.jsx b/src/components/layout/Navbar/index.jsx index b5883517..de7a0067 100644 --- a/src/components/layout/Navbar/index.jsx +++ b/src/components/layout/Navbar/index.jsx @@ -92,14 +92,16 @@ const NavigationLinks = ({ style, open, setOpen, links, cta }) => { {link.name} ))} - setOpen(false)} - > - {cta ? cta.name : 'Partner'} - + {cta && ( + setOpen(false)} + > + {cta ? cta.name : 'Partner'} + + )} ); }; diff --git a/src/components/layout/index.jsx b/src/components/layout/index.jsx index a9edc799..5bcc25ea 100644 --- a/src/components/layout/index.jsx +++ b/src/components/layout/index.jsx @@ -25,12 +25,13 @@ export { const Layout = ({ content, children }) => { return ( <> - + + {/* */}
{children} - + {/* */}