From 29575fe0c60a10e75a61a45d0f41238eae98e471 Mon Sep 17 00:00:00 2001 From: Jagoda Berry Rybacka Date: Wed, 8 Nov 2023 17:47:51 +0100 Subject: [PATCH] Hide waitlist behind a feature flag --- .env.defaults | 3 ++- src/ui/Onboarding/JoinWaitlist.tsx | 29 ++++++++++++++++------------- 2 files changed, 18 insertions(+), 14 deletions(-) diff --git a/.env.defaults b/.env.defaults index c3d00ca0a..479fd54d5 100644 --- a/.env.defaults +++ b/.env.defaults @@ -26,4 +26,5 @@ SEASON_LENGTH_IN_WEEKS=8 CONTRACT_DEPLOYMENT_BLOCK_NUMBER=553443 SEASON_START_DATE="2023-10-26" SKIP_REACT_STRICT_MODE="false" -IS_COMING_SOON="true" \ No newline at end of file +IS_COMING_SOON="true" +SHOW_WAITLIST="false" \ No newline at end of file diff --git a/src/ui/Onboarding/JoinWaitlist.tsx b/src/ui/Onboarding/JoinWaitlist.tsx index f84b11815..a45fc72ac 100644 --- a/src/ui/Onboarding/JoinWaitlist.tsx +++ b/src/ui/Onboarding/JoinWaitlist.tsx @@ -9,17 +9,20 @@ export default function JoinWaitlist({ }: { children: React.ReactNode }) { - return ( - - Join waitlist{" "} - - - } - onClick={() => window.open(LINKS.WAITLIST)} - > - {children} - - ) + if (process.env.SHOW_WAITLIST === "true") + return ( + + Join waitlist{" "} + + + } + onClick={() => window.open(LINKS.WAITLIST)} + > + {children} + + ) + + return {children} }