Skip to content

Commit

Permalink
Hide waitlist behind a feature flag (#658)
Browse files Browse the repository at this point in the history
Hide waitlist behind `SHOW_WAITLIST` feature flag. Right now it should
be hidden.


![image](https://github.com/tahowallet/dapp/assets/20949277/4e3ffcc9-af3f-41a7-a1f8-dc4077f31488)
  • Loading branch information
andreachapman authored Nov 8, 2023
2 parents 909930f + 29575fe commit 87eae64
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 87eae64

Please sign in to comment.