Skip to content

Commit

Permalink
Hide Subscape features (#3697)
Browse files Browse the repository at this point in the history
Resolves #3673

### What

Let's hide banners and floating link to Subscape for interseason period.

### Testing

- [x] there should be no Subscape link on the wallet page
- [x] there should be no banner mentioning Subscape visible on the
wallet page

Latest build:
[extension-builds-3697](https://github.com/tahowallet/extension/suites/18971874623/artifacts/1109093069)
(as of Tue, 12 Dec 2023 12:50:33 GMT).
  • Loading branch information
xpaczka authored Dec 12, 2023
2 parents c2f21bf + 7fc5f1e commit e95a152
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .env.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ SUPPORT_ARBITRUM_NOVA=false
SUPPORT_SWAP_QUOTE_REFRESH=false
SUPPORT_ACHIEVEMENTS_BANNER=false
SUPPORT_NFT_SEND=false
HIDE_ISLAND_UI=true
SUPPORT_THE_ISLAND=true
SUPPORT_THE_ISLAND_ON_TENDERLY=false
USE_MAINNET_FORK=false
Expand Down
1 change: 1 addition & 0 deletions background/features.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export const RuntimeFlag = {
SUPPORT_SWAP_QUOTE_REFRESH: process.env.SUPPORT_SWAP_QUOTE_REFRESH === "true",
SUPPORT_CUSTOM_NETWORKS: process.env.SUPPORT_CUSTOM_NETWORKS === "true",
SUPPORT_CUSTOM_RPCS: process.env.SUPPORT_CUSTOM_RPCS === "true",
HIDE_ISLAND_UI: process.env.HIDE_ISLAND_UI === "true",
SUPPORT_THE_ISLAND: process.env.SUPPORT_THE_ISLAND === "true",
SUPPORT_THE_ISLAND_ON_TENDERLY:
process.env.SUPPORT_THE_ISLAND_ON_TENDERLY === "true",
Expand Down
4 changes: 2 additions & 2 deletions ui/pages/Wallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export default function Wallet(): ReactElement {
return (
<>
<div className="page_content">
<WalletSubspaceLink />
{!isEnabled(FeatureFlags.HIDE_ISLAND_UI) && <WalletSubspaceLink />}
<WalletAnalyticsNotificationBanner />
<div className="section">
<WalletAccountBalanceControl
Expand All @@ -116,7 +116,7 @@ export default function Wallet(): ReactElement {
{!isEnabled(FeatureFlags.HIDE_TOKEN_FEATURES) && (
<OnboardingOpenClaimFlowBanner />
)}
<PortalBanner />
{!isEnabled(FeatureFlags.HIDE_ISLAND_UI) && <PortalBanner />}
<div className="section">
<SharedPanelSwitcher
setPanelNumber={setPanelNumber}
Expand Down

0 comments on commit e95a152

Please sign in to comment.