aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/app.js
diff options
context:
space:
mode:
authorDan J Miller <danjm.com@gmail.com>2018-02-16 17:45:09 +0800
committerGitHub <noreply@github.com>2018-02-16 17:45:09 +0800
commit170c7602b70e475e75fbd1c7181d03e22465ae24 (patch)
tree8259feb7fcb61dce2c793c97311e42dc1531658c /ui/app/app.js
parent77259ef5be440292401be6cadbb7ad01bf27fcf4 (diff)
downloadtangerine-wallet-browser-170c7602b70e475e75fbd1c7181d03e22465ae24.tar
tangerine-wallet-browser-170c7602b70e475e75fbd1c7181d03e22465ae24.tar.gz
tangerine-wallet-browser-170c7602b70e475e75fbd1c7181d03e22465ae24.tar.bz2
tangerine-wallet-browser-170c7602b70e475e75fbd1c7181d03e22465ae24.tar.lz
tangerine-wallet-browser-170c7602b70e475e75fbd1c7181d03e22465ae24.tar.xz
tangerine-wallet-browser-170c7602b70e475e75fbd1c7181d03e22465ae24.tar.zst
tangerine-wallet-browser-170c7602b70e475e75fbd1c7181d03e22465ae24.zip
[NewUI] Adds the mascara first time flow to betaUI extension (#3257)
* Adds the mascara first time flow to the extension when opened in browser. * Fix tests after addition of mascara first time flow to new ui.
Diffstat (limited to 'ui/app/app.js')
-rw-r--r--ui/app/app.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/ui/app/app.js b/ui/app/app.js
index cdb0c8c61..5ffd263d1 100644
--- a/ui/app/app.js
+++ b/ui/app/app.js
@@ -9,7 +9,7 @@ const classnames = require('classnames')
const MascaraFirstTime = require('../../mascara/src/app/first-time').default
const MascaraBuyEtherScreen = require('../../mascara/src/app/first-time/buy-ether-screen').default
// init
-const InitializeMenuScreen = require('./first-time/init-menu')
+const InitializeMenuScreen = MascaraFirstTime
const NewKeyChainScreen = require('./new-keychain')
// accounts
const MainContainer = require('./main-container')
@@ -74,6 +74,7 @@ function mapStateToProps (state) {
transForward: state.appState.transForward,
isMascara: state.metamask.isMascara,
isOnboarding: Boolean(!noActiveNotices || seedWords || !isInitialized),
+ isPopup: state.metamask.isPopup,
seedWords: state.metamask.seedWords,
unapprovedTxs: state.metamask.unapprovedTxs,
unapprovedMsgs: state.metamask.unapprovedMsgs,
@@ -85,7 +86,8 @@ function mapStateToProps (state) {
lostAccounts: state.metamask.lostAccounts,
frequentRpcList: state.metamask.frequentRpcList || [],
currentCurrency: state.metamask.currentCurrency,
- isMouseUser: state.appState.isMouseUser,
+ isMouseUser: state.appState.isMouseUser,
+ betaUI: state.metamask.featureFlags.betaUI,
// state needed to get account dropdown temporarily rendering from app bar
identities,
@@ -351,9 +353,9 @@ App.prototype.renderBackButton = function (style, justArrow = false) {
App.prototype.renderPrimary = function () {
log.debug('rendering primary')
var props = this.props
- const {isMascara, isOnboarding} = props
+ const {isMascara, isOnboarding, betaUI} = props
- if (isMascara && isOnboarding) {
+ if ((isMascara || betaUI) && isOnboarding && !props.isPopup) {
return h(MascaraFirstTime)
}