aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/settings.js
diff options
context:
space:
mode:
authorDan J Miller <danjm.com@gmail.com>2017-12-21 02:22:50 +0800
committerAlexander Tseung <alextsg@users.noreply.github.com>2017-12-21 02:22:50 +0800
commitbccbf14b39ab2b1670c9c30b276404fe4f949cd7 (patch)
tree64ca0324e8695a85460158aade2a7bd135dcb419 /ui/app/settings.js
parent109e4e5d96e31b52fcfdb22620bff113107d000c (diff)
downloadtangerine-wallet-browser-bccbf14b39ab2b1670c9c30b276404fe4f949cd7.tar
tangerine-wallet-browser-bccbf14b39ab2b1670c9c30b276404fe4f949cd7.tar.gz
tangerine-wallet-browser-bccbf14b39ab2b1670c9c30b276404fe4f949cd7.tar.bz2
tangerine-wallet-browser-bccbf14b39ab2b1670c9c30b276404fe4f949cd7.tar.lz
tangerine-wallet-browser-bccbf14b39ab2b1670c9c30b276404fe4f949cd7.tar.xz
tangerine-wallet-browser-bccbf14b39ab2b1670c9c30b276404fe4f949cd7.tar.zst
tangerine-wallet-browser-bccbf14b39ab2b1670c9c30b276404fe4f949cd7.zip
[NewUI] Hide UI toggle in mascara (#2772)
* Hides old-UI on mascara. * Improve code clarity in select-app.js
Diffstat (limited to 'ui/app/settings.js')
-rw-r--r--ui/app/settings.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/ui/app/settings.js b/ui/app/settings.js
index ca7535d26..74b282a98 100644
--- a/ui/app/settings.js
+++ b/ui/app/settings.js
@@ -250,7 +250,7 @@ class Settings extends Component {
}
renderSettingsContent () {
- const { warning } = this.props
+ const { warning, isMascara } = this.props
return (
h('div.settings__content', [
@@ -261,7 +261,7 @@ class Settings extends Component {
this.renderNewRpcUrl(),
this.renderStateLogs(),
this.renderSeedWords(),
- this.renderOldUI(),
+ !isMascara && this.renderOldUI(),
])
)
}
@@ -386,12 +386,14 @@ Settings.propTypes = {
setFeatureFlagToBeta: PropTypes.func,
warning: PropTypes.string,
goHome: PropTypes.func,
+ isMascara: PropTypes.bool,
}
const mapStateToProps = state => {
return {
metamask: state.metamask,
warning: state.appState.warning,
+ isMascara: state.metamask.isMascara,
}
}
@@ -403,7 +405,7 @@ const mapDispatchToProps = dispatch => {
displayWarning: warning => dispatch(actions.displayWarning(warning)),
revealSeedConfirmation: () => dispatch(actions.revealSeedConfirmation()),
setUseBlockie: value => dispatch(actions.setUseBlockie(value)),
- setFeatureFlagToBeta: () => dispatch(actions.setFeatureFlag('betaUI', false)),
+ setFeatureFlagToBeta: () => dispatch(actions.setFeatureFlag('betaUI', false, 'OLD_UI_NOTIFICATION_MODAL')),
}
}