diff options
author | Alexander Tseung <alextsg@users.noreply.github.com> | 2017-12-23 02:43:02 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-23 02:43:02 +0800 |
commit | a218008adf85dfb5fa8ca93c789e14d9f2090813 (patch) | |
tree | 863dd34eed719074277a8c65397d9e5081b2084b /old-ui/app | |
parent | 4acd48966edf2e6cf4ced6e3e0983a44dcb2ec13 (diff) | |
download | tangerine-wallet-browser-a218008adf85dfb5fa8ca93c789e14d9f2090813.tar tangerine-wallet-browser-a218008adf85dfb5fa8ca93c789e14d9f2090813.tar.gz tangerine-wallet-browser-a218008adf85dfb5fa8ca93c789e14d9f2090813.tar.bz2 tangerine-wallet-browser-a218008adf85dfb5fa8ca93c789e14d9f2090813.tar.lz tangerine-wallet-browser-a218008adf85dfb5fa8ca93c789e14d9f2090813.tar.xz tangerine-wallet-browser-a218008adf85dfb5fa8ca93c789e14d9f2090813.tar.zst tangerine-wallet-browser-a218008adf85dfb5fa8ca93c789e14d9f2090813.zip |
Track usage of old and new UI (#2794)
[NewUI] Track usage of old and new UI
Diffstat (limited to 'old-ui/app')
-rw-r--r-- | old-ui/app/app.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/old-ui/app/app.js b/old-ui/app/app.js index 24649367b..4869bf72e 100644 --- a/old-ui/app/app.js +++ b/old-ui/app/app.js @@ -34,6 +34,7 @@ const HDCreateVaultComplete = require('./keychains/hd/create-vault-complete') const HDRestoreVaultScreen = require('./keychains/hd/restore-vault') const RevealSeedConfirmation = require('./keychains/hd/recover-seed/confirmation') const AccountDropdowns = require('./components/account-dropdowns').AccountDropdowns +const { BETA_UI_NETWORK_TYPE } = require('../../app/scripts/config').enums module.exports = connect(mapStateToProps)(App) @@ -405,7 +406,10 @@ App.prototype.renderDropdown = function () { h(DropdownMenuItem, { closeMenu: () => this.setState({ isMainMenuOpen: !isOpen }), - onClick: () => { this.props.dispatch(actions.setFeatureFlag('betaUI', true, 'BETA_UI_NOTIFICATION_MODAL')) }, + onClick: () => { + this.props.dispatch(actions.setFeatureFlag('betaUI', true, 'BETA_UI_NOTIFICATION_MODAL')) + .then(() => this.props.dispatch(actions.setNetworkEndpoints(BETA_UI_NETWORK_TYPE))) + }, }, 'Try Beta!'), ]) } |