Remove 'ADD_POPULAR_NETWORKS' feature flag (#15229)

feature/default_network_editable
ryanml 2 years ago committed by GitHub
parent 6b4fa46908
commit 959a376347
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      .metamaskrc.dist
  2. 2
      development/build/scripts.js
  3. 3
      ui/pages/settings/experimental-tab/experimental-tab.component.js

@ -6,7 +6,6 @@ ONBOARDING_V2=
SWAPS_USE_DEV_APIS= SWAPS_USE_DEV_APIS=
COLLECTIBLES_V1= COLLECTIBLES_V1=
TOKEN_DETECTION_V2= TOKEN_DETECTION_V2=
ADD_POPULAR_NETWORKS=
; Set this to test changes to the phishing warning page. ; Set this to test changes to the phishing warning page.
PHISHING_WARNING_PAGE_URL= PHISHING_WARNING_PAGE_URL=

@ -36,7 +36,6 @@ const metamaskrc = require('rc')('metamask', {
COLLECTIBLES_V1: process.env.COLLECTIBLES_V1, COLLECTIBLES_V1: process.env.COLLECTIBLES_V1,
PHISHING_WARNING_PAGE_URL: process.env.PHISHING_WARNING_PAGE_URL, PHISHING_WARNING_PAGE_URL: process.env.PHISHING_WARNING_PAGE_URL,
TOKEN_DETECTION_V2: process.env.TOKEN_DETECTION_V2, TOKEN_DETECTION_V2: process.env.TOKEN_DETECTION_V2,
ADD_POPULAR_NETWORKS: process.env.ADD_POPULAR_NETWORKS,
SEGMENT_HOST: process.env.SEGMENT_HOST, SEGMENT_HOST: process.env.SEGMENT_HOST,
SEGMENT_WRITE_KEY: process.env.SEGMENT_WRITE_KEY, SEGMENT_WRITE_KEY: process.env.SEGMENT_WRITE_KEY,
SEGMENT_BETA_WRITE_KEY: process.env.SEGMENT_BETA_WRITE_KEY, SEGMENT_BETA_WRITE_KEY: process.env.SEGMENT_BETA_WRITE_KEY,
@ -961,7 +960,6 @@ function getEnvironmentVariables({ buildType, devMode, testing, version }) {
ONBOARDING_V2: metamaskrc.ONBOARDING_V2 === '1', ONBOARDING_V2: metamaskrc.ONBOARDING_V2 === '1',
COLLECTIBLES_V1: metamaskrc.COLLECTIBLES_V1 === '1', COLLECTIBLES_V1: metamaskrc.COLLECTIBLES_V1 === '1',
TOKEN_DETECTION_V2: metamaskrc.TOKEN_DETECTION_V2 === '1', TOKEN_DETECTION_V2: metamaskrc.TOKEN_DETECTION_V2 === '1',
ADD_POPULAR_NETWORKS: metamaskrc.ADD_POPULAR_NETWORKS === '1',
}; };
} }

@ -336,8 +336,7 @@ export default class ExperimentalTab extends PureComponent {
{this.renderCollectibleDetectionToggle()} {this.renderCollectibleDetectionToggle()}
{this.renderEIP1559V2EnabledToggle()} {this.renderEIP1559V2EnabledToggle()}
{this.renderTheme()} {this.renderTheme()}
{process.env.ADD_POPULAR_NETWORKS && {this.renderCustomNetworkListToggle()}
this.renderCustomNetworkListToggle()}
</div> </div>
); );
} }

Loading…
Cancel
Save