From 4bf7c6857416b37c027d7176c1a341596a639c7c Mon Sep 17 00:00:00 2001 From: zeppi Date: Mon, 19 Jul 2021 22:38:55 -0400 Subject: [PATCH] use config for showTagsIntro --- .env.defaults | 1 + config.js | 1 + ui/component/userSignUp/view.jsx | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.env.defaults b/.env.defaults index b194fae90..4459153bc 100644 --- a/.env.defaults +++ b/.env.defaults @@ -90,3 +90,4 @@ ENABLE_UI_NOTIFICATIONS=false #USE_DISCOVER_WHITELIST=false #ENABLE_WILD_WEST=false #FULL_SIDE_LINKS=true +SHOW_TAGS_INTRO=true diff --git a/config.js b/config.js index 4c3ee2f9d..c0eca56f8 100644 --- a/config.js +++ b/config.js @@ -62,6 +62,7 @@ const config = { ENABLE_UI_NOTIFICATIONS: process.env.ENABLE_UI_NOTIFICATIONS === 'true', ENABLE_MATURE: process.env.ENABLE_MATURE === 'true', CUSTOM_HOMEPAGE: process.env.CUSTOM_HOMEPAGE === 'true', + SHOW_TAGS_INTRO: process.env.SHOW_TAGS_INTRO === 'true', }; config.URL_LOCAL = `http://localhost:${config.WEB_SERVER_PORT}`; diff --git a/ui/component/userSignUp/view.jsx b/ui/component/userSignUp/view.jsx index 11ddbcaeb..0fca417c4 100644 --- a/ui/component/userSignUp/view.jsx +++ b/ui/component/userSignUp/view.jsx @@ -19,6 +19,7 @@ import YoutubeTransferStatus from 'component/youtubeTransferStatus'; import useFetched from 'effects/use-fetched'; import Confetti from 'react-confetti'; import usePrevious from 'effects/use-previous'; +import { SHOW_TAGS_INTRO } from 'config'; const REDIRECT_PARAM = 'redirect'; const REDIRECT_IMMEDIATELY_PARAM = 'immediate'; @@ -118,7 +119,7 @@ function UserSignUp(props: Props) { interestedInYoutubeSync); const showYoutubeTransfer = hasVerifiedEmail && hasYoutubeChannels && !isYoutubeTransferComplete; const showFollowIntro = step === 'channels' || (hasVerifiedEmail && !followingAcknowledged); - const showTagsIntro = step === 'tags' || (hasVerifiedEmail && !tagsAcknowledged); + const showTagsIntro = SHOW_TAGS_INTRO && (step === 'tags' || (hasVerifiedEmail && !tagsAcknowledged)); const canHijackSignInFlowWithSpinner = hasVerifiedEmail && !showFollowIntro && !showTagsIntro && !rewardsAcknowledged; const isCurrentlyFetchingSomething = fetchingChannels || claimingReward || syncingWallet || creatingChannel; const isWaitingForSomethingToFinish =