From e124b216d7af0632876e38f7b5249bec35dd1476 Mon Sep 17 00:00:00 2001 From: Cristhian Zanforlin Lousa Date: Mon, 14 Aug 2023 18:45:09 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20refactor(headerComponent/index.t?= =?UTF-8?q?sx):=20simplify=20header=20component=20by=20removing=20unnecess?= =?UTF-8?q?ary=20conditional=20rendering=20and=20adding=20sign=20out=20but?= =?UTF-8?q?ton?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/headerComponent/index.tsx | 30 ++++++++----------- 1 file changed, 13 insertions(+), 17 deletions(-) diff --git a/src/frontend/src/components/headerComponent/index.tsx b/src/frontend/src/components/headerComponent/index.tsx index cb688f4db..b69fa5608 100644 --- a/src/frontend/src/components/headerComponent/index.tsx +++ b/src/frontend/src/components/headerComponent/index.tsx @@ -34,23 +34,19 @@ export default function Header() { return (
- {tabId === "" || !tabId ? ( -
- - ⛓️ - Join The Waitlist - -
- ) : ( - - ⛓️ - - )} + + ⛓️ + + {flows.findIndex((f) => tabId === f.id) !== -1 && tabId !== "" && (