|
|
|
@ -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 |
|
|
|
|
} |
|
|
|
|