aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/select-app.js
diff options
context:
space:
mode:
authorAlexander Tseung <alextsg@gmail.com>2018-02-01 10:08:49 +0800
committerAlexander Tseung <alextsg@gmail.com>2018-02-01 10:08:49 +0800
commit0c6fef3dec4f3ba70e8e86275ee9db4f2d58d129 (patch)
tree17d4315158490ff889326e821802468ca23a2afa /ui/app/select-app.js
parentecc39c5a7abd8c8794d5565c1bc7d213d3514d61 (diff)
downloadtangerine-wallet-browser-0c6fef3dec4f3ba70e8e86275ee9db4f2d58d129.tar.gz
tangerine-wallet-browser-0c6fef3dec4f3ba70e8e86275ee9db4f2d58d129.tar.zst
tangerine-wallet-browser-0c6fef3dec4f3ba70e8e86275ee9db4f2d58d129.zip
Add create new account routes, fix conflicts from uat updates
Diffstat (limited to 'ui/app/select-app.js')
-rw-r--r--ui/app/select-app.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/ui/app/select-app.js b/ui/app/select-app.js
index 193c98353..c6ef1abda 100644
--- a/ui/app/select-app.js
+++ b/ui/app/select-app.js
@@ -2,6 +2,7 @@ const inherits = require('util').inherits
const Component = require('react').Component
const connect = require('react-redux').connect
const h = require('react-hyperscript')
+const { HashRouter } = require('react-router-dom')
const App = require('./app')
const OldApp = require('../../old-ui/app/app')
const { autoAddToBetaUI } = require('./selectors')
@@ -62,7 +63,12 @@ SelectedApp.prototype.render = function () {
// const Selected = betaUI || isMascara || firstTime ? App : OldApp
const { betaUI, isMascara } = this.props
- const Selected = betaUI || isMascara ? App : OldApp
- return h(Selected)
+ return betaUI || isMascara
+ ? h(HashRouter, {
+ hashType: 'noslash',
+ }, [
+ h(App),
+ ])
+ : h(OldApp)
}