aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/settings.js
diff options
context:
space:
mode:
authorChi Kei Chan <chikeichan@gmail.com>2017-12-08 01:47:31 +0800
committerGitHub <noreply@github.com>2017-12-08 01:47:31 +0800
commite0d0e19c925224bddf56a4088fb9c402d995d79f (patch)
treef6306a17629d68e217488ab15af7ce5029c07335 /ui/app/settings.js
parent2e9137dddd4abd07cc45caa670f09bdc9559bbbb (diff)
parentefa894a0c3af0b8182b639c25b4c249b083009cf (diff)
downloadtangerine-wallet-browser-e0d0e19c925224bddf56a4088fb9c402d995d79f.tar
tangerine-wallet-browser-e0d0e19c925224bddf56a4088fb9c402d995d79f.tar.gz
tangerine-wallet-browser-e0d0e19c925224bddf56a4088fb9c402d995d79f.tar.bz2
tangerine-wallet-browser-e0d0e19c925224bddf56a4088fb9c402d995d79f.tar.lz
tangerine-wallet-browser-e0d0e19c925224bddf56a4088fb9c402d995d79f.tar.xz
tangerine-wallet-browser-e0d0e19c925224bddf56a4088fb9c402d995d79f.tar.zst
tangerine-wallet-browser-e0d0e19c925224bddf56a4088fb9c402d995d79f.zip
Merge pull request #2697 from danjm/MM-333-auto-add-users-to-new-UI
[NewUI] Auto add users to new ui
Diffstat (limited to 'ui/app/settings.js')
-rw-r--r--ui/app/settings.js25
1 files changed, 24 insertions, 1 deletions
diff --git a/ui/app/settings.js b/ui/app/settings.js
index caa36d2b8..ca7535d26 100644
--- a/ui/app/settings.js
+++ b/ui/app/settings.js
@@ -228,6 +228,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--orange', {
+ 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)),
}
}