From 6bc105c1ec5c8e91ad2102bd2937d6293a06d644 Mon Sep 17 00:00:00 2001 From: Tom Jeatt Date: Wed, 26 Feb 2025 11:42:38 +0000 Subject: [PATCH 1/3] chore: feature flag --- src/App.tsx | 9 ++++++--- src/hooks/use-feature-flag.ts | 6 ++++-- src/pages/BOB/BOB.tsx | 4 ++-- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 02011c9fc1..e3602976d8 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -47,6 +47,7 @@ const App = (): JSX.Element => { const dispatch = useDispatch(); const isStrategiesEnabled = useFeatureFlag(FeatureFlags.STRATEGIES); const isOnboardingEnabled = useFeatureFlag(FeatureFlags.ONBOARDING); + const isBobXInterlayEnabled = useFeatureFlag(FeatureFlags.BOB_X_INTERLAY); // Detects if the connected account is a vault operator const { error: vaultsError } = useQuery, Error>( @@ -120,9 +121,11 @@ const App = (): JSX.Element => { - - - + {isBobXInterlayEnabled && ( + + + + )} {isStrategiesEnabled && ( <> diff --git a/src/hooks/use-feature-flag.ts b/src/hooks/use-feature-flag.ts index c5d356ac2c..b5702b2617 100644 --- a/src/hooks/use-feature-flag.ts +++ b/src/hooks/use-feature-flag.ts @@ -1,13 +1,15 @@ enum FeatureFlags { STRATEGIES = 'strategies', GEOBLOCK = 'geoblock', - ONBOARDING = 'onboarding' + ONBOARDING = 'onboarding', + BOB_X_INTERLAY = 'bob-x-interlay' } const featureFlags: Record = { [FeatureFlags.STRATEGIES]: process.env.REACT_APP_FEATURE_FLAG_STRATEGIES, [FeatureFlags.GEOBLOCK]: process.env.REACT_APP_FEATURE_FLAG_GEOBLOCK, - [FeatureFlags.ONBOARDING]: process.env.REACT_APP_FEATURE_FLAG_ONBOARDING + [FeatureFlags.ONBOARDING]: process.env.REACT_APP_FEATURE_FLAG_ONBOARDING, + [FeatureFlags.BOB_X_INTERLAY]: process.env.REACT_APP_FEATURE_FLAG_BOB_X_INTERLAY }; const useFeatureFlag = (feature: FeatureFlags): boolean => featureFlags[feature] === 'enabled'; diff --git a/src/pages/BOB/BOB.tsx b/src/pages/BOB/BOB.tsx index 6c07f092d8..d36765af84 100644 --- a/src/pages/BOB/BOB.tsx +++ b/src/pages/BOB/BOB.tsx @@ -155,9 +155,9 @@ const BOB = (): JSX.Element => {

Only original Interlay community members are eligible. Simply submit the EVM address you'd like to receive the NFT and sign the transaction with your Interlay account to prove your community - status. We'll let you know in Interlay Discord when the NFT will be available to claim. + status.

-

The claim page is only live until [DATE].

+

We'll let you know in Interlay Discord when the NFT will be available to claim.

From 17d421a98a9280eae35fc66c44298c504d59383e Mon Sep 17 00:00:00 2001 From: Tom Jeatt Date: Wed, 26 Feb 2025 11:44:20 +0000 Subject: [PATCH 2/3] chore: copy change --- src/pages/BOB/BOB.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/pages/BOB/BOB.tsx b/src/pages/BOB/BOB.tsx index d36765af84..601d369bd3 100644 --- a/src/pages/BOB/BOB.tsx +++ b/src/pages/BOB/BOB.tsx @@ -157,7 +157,10 @@ const BOB = (): JSX.Element => { to receive the NFT and sign the transaction with your Interlay account to prove your community status.

-

We'll let you know in Interlay Discord when the NFT will be available to claim.

+

+ Submit your Ethereum address below to register. We'll let you know in Interlay Discord when the NFT + is available to claim. +

@@ -171,7 +174,7 @@ const BOB = (): JSX.Element => { - Claim your NFT + Register your Ethereum address From 5d625c3458562e50076c45c425878c508e258895 Mon Sep 17 00:00:00 2001 From: Tom Jeatt Date: Wed, 26 Feb 2025 11:45:56 +0000 Subject: [PATCH 3/3] chore: copy --- src/pages/BOB/BOB.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/BOB/BOB.tsx b/src/pages/BOB/BOB.tsx index 601d369bd3..f390ac68be 100644 --- a/src/pages/BOB/BOB.tsx +++ b/src/pages/BOB/BOB.tsx @@ -150,7 +150,7 @@ const BOB = (): JSX.Element => { BOB {' '} - x Interlay exclusive NFT badge today. + x Interlay exclusive NFT badge.

Only original Interlay community members are eligible. Simply submit the EVM address you'd like