aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2017-12-05 03:00:45 +0800
committerDan <danjm.com@gmail.com>2017-12-05 10:38:51 +0800
commit730d7f84ca8c202674677a6a6a94290e57ad9e3a (patch)
tree19af0d72db9f80ed67e1f88d87eeea34e2b3e26c /ui
parent84321b2d9b08a2b0f3e773cfb6f6d11dff9f7d4c (diff)
downloadtangerine-wallet-browser-730d7f84ca8c202674677a6a6a94290e57ad9e3a.tar
tangerine-wallet-browser-730d7f84ca8c202674677a6a6a94290e57ad9e3a.tar.gz
tangerine-wallet-browser-730d7f84ca8c202674677a6a6a94290e57ad9e3a.tar.bz2
tangerine-wallet-browser-730d7f84ca8c202674677a6a6a94290e57ad9e3a.tar.lz
tangerine-wallet-browser-730d7f84ca8c202674677a6a6a94290e57ad9e3a.tar.xz
tangerine-wallet-browser-730d7f84ca8c202674677a6a6a94290e57ad9e3a.tar.zst
tangerine-wallet-browser-730d7f84ca8c202674677a6a6a94290e57ad9e3a.zip
Update newUI UI for switching back to old UI.
Diffstat (limited to 'ui')
-rw-r--r--ui/app/app.js7
-rw-r--r--ui/app/settings.js25
2 files changed, 24 insertions, 8 deletions
diff --git a/ui/app/app.js b/ui/app/app.js
index 7cee07ea5..88a5c8458 100644
--- a/ui/app/app.js
+++ b/ui/app/app.js
@@ -269,13 +269,6 @@ App.prototype.renderAppBar = function () {
},
}, 'MetaMask'),
- h('span', {
- style: {},
- onClick: () => {
- props.dispatch(actions.setFeatureFlag('betaUI', false))
- },
- }, 'Leave Beta'),
-
]),
h('div.header__right-actions', [
diff --git a/ui/app/settings.js b/ui/app/settings.js
index caa36d2b8..ba59f1c76 100644
--- a/ui/app/settings.js
+++ b/ui/app/settings.js
@@ -229,6 +229,26 @@ class Settings extends Component {
)
}
+ renderOldUI () {
+ const { setFeatureFlagToBeta } = this.props
+
+ return (
+ h('div.settings__content-row', [
+ h('div.settings__content-item', 'Use old UI'),
+ h('div.settings__content-item', [
+ h('div.settings__content-item-col', [
+ h('button.settings__clear-button.settings__clear-button--red', {
+ onClick (event) {
+ event.preventDefault()
+ setFeatureFlagToBeta()
+ },
+ }, 'Use old UI'),
+ ]),
+ ]),
+ ])
+ )
+ }
+
renderSettingsContent () {
const { warning } = this.props
@@ -241,10 +261,11 @@ class Settings extends Component {
this.renderNewRpcUrl(),
this.renderStateLogs(),
this.renderSeedWords(),
+ this.renderOldUI(),
])
)
}
-
+
renderLogo () {
return (
h('div.settings__info-logo-wrapper', [
@@ -362,6 +383,7 @@ Settings.propTypes = {
setRpcTarget: PropTypes.func,
displayWarning: PropTypes.func,
revealSeedConfirmation: PropTypes.func,
+ setFeatureFlagToBeta: PropTypes.func,
warning: PropTypes.string,
goHome: PropTypes.func,
}
@@ -381,6 +403,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)),
}
}