aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/select-app.js
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-03-30 06:46:45 +0800
committerDan <danjm.com@gmail.com>2018-03-30 06:46:45 +0800
commitad603da2e72fbc64733836e1b3626627de81fa76 (patch)
treee5dec131e3127b3e7f6330792bca65b7edc30d52 /ui/app/select-app.js
parent949ac352de33fb8daf9ae4ea240e201cc25418c0 (diff)
downloadtangerine-wallet-browser-ad603da2e72fbc64733836e1b3626627de81fa76.tar
tangerine-wallet-browser-ad603da2e72fbc64733836e1b3626627de81fa76.tar.gz
tangerine-wallet-browser-ad603da2e72fbc64733836e1b3626627de81fa76.tar.bz2
tangerine-wallet-browser-ad603da2e72fbc64733836e1b3626627de81fa76.tar.lz
tangerine-wallet-browser-ad603da2e72fbc64733836e1b3626627de81fa76.tar.xz
tangerine-wallet-browser-ad603da2e72fbc64733836e1b3626627de81fa76.tar.zst
tangerine-wallet-browser-ad603da2e72fbc64733836e1b3626627de81fa76.zip
Stopping wrapping provider children in div; stop wrapping old-ui in provider.
Diffstat (limited to 'ui/app/select-app.js')
-rw-r--r--ui/app/select-app.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/app/select-app.js b/ui/app/select-app.js
index 193c98353..101eb1cf6 100644
--- a/ui/app/select-app.js
+++ b/ui/app/select-app.js
@@ -7,6 +7,7 @@ const OldApp = require('../../old-ui/app/app')
const { autoAddToBetaUI } = require('./selectors')
const { setFeatureFlag, setNetworkEndpoints } = require('./actions')
const { BETA_UI_NETWORK_TYPE } = require('../../app/scripts/config').enums
+const I18nProvider = require('./i18n-provider')
function mapStateToProps (state) {
return {
@@ -62,7 +63,7 @@ SelectedApp.prototype.render = function () {
// const Selected = betaUI || isMascara || firstTime ? App : OldApp
const { betaUI, isMascara } = this.props
- const Selected = betaUI || isMascara ? App : OldApp
+ const Selected = betaUI || isMascara ? h(I18nProvider, [ h(App) ]) : h(OldApp)
- return h(Selected)
+ return Selected
}