Skip to content

Commit

Permalink
Hide waitlist behind a feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
jagodarybacka committed Nov 8, 2023
1 parent 909930f commit 29575fe
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 14 deletions.
3 changes: 2 additions & 1 deletion .env.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -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"
IS_COMING_SOON="true"
SHOW_WAITLIST="false"
29 changes: 16 additions & 13 deletions src/ui/Onboarding/JoinWaitlist.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,20 @@ export default function JoinWaitlist({
}: {
children: React.ReactNode
}) {
return (
<OnboardingModal
buttonLabel={
<>
Join waitlist{" "}
<Icon src={newTab} color="#000" height="24px" width="24px" />
</>
}
onClick={() => window.open(LINKS.WAITLIST)}
>
{children}
</OnboardingModal>
)
if (process.env.SHOW_WAITLIST === "true")
return (
<OnboardingModal
buttonLabel={
<>
Join waitlist{" "}
<Icon src={newTab} color="#000" height="24px" width="24px" />
</>
}
onClick={() => window.open(LINKS.WAITLIST)}
>
{children}
</OnboardingModal>
)

return <OnboardingModal>{children}</OnboardingModal>
}

0 comments on commit 29575fe

Please sign in to comment.