1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00

put new collectibles related preferences behind feature flag (#12936)

This commit is contained in:
Alex Donesky 2021-12-01 16:10:24 -06:00 committed by GitHub
parent eb4f051b23
commit c29afd110b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,6 +53,10 @@ export default class ExperimentalTab extends PureComponent {
} }
renderCollectibleDetectionToggle() { renderCollectibleDetectionToggle() {
if (!process.env.COLLECTIBLES_V1) {
return null;
}
const { t } = this.context; const { t } = this.context;
const { const {
useCollectibleDetection, useCollectibleDetection,
@ -93,6 +97,9 @@ export default class ExperimentalTab extends PureComponent {
} }
renderOpenSeaEnabledToggle() { renderOpenSeaEnabledToggle() {
if (!process.env.COLLECTIBLES_V1) {
return null;
}
const { t } = this.context; const { t } = this.context;
const { openSeaEnabled, setOpenSeaEnabled } = this.props; const { openSeaEnabled, setOpenSeaEnabled } = this.props;