|
|
@ -9,7 +9,7 @@ const classnames = require('classnames') |
|
|
|
const MascaraFirstTime = require('../../mascara/src/app/first-time').default |
|
|
|
const MascaraFirstTime = require('../../mascara/src/app/first-time').default |
|
|
|
const MascaraBuyEtherScreen = require('../../mascara/src/app/first-time/buy-ether-screen').default |
|
|
|
const MascaraBuyEtherScreen = require('../../mascara/src/app/first-time/buy-ether-screen').default |
|
|
|
// init
|
|
|
|
// init
|
|
|
|
const InitializeMenuScreen = require('./first-time/init-menu') |
|
|
|
const InitializeMenuScreen = MascaraFirstTime |
|
|
|
const NewKeyChainScreen = require('./new-keychain') |
|
|
|
const NewKeyChainScreen = require('./new-keychain') |
|
|
|
// accounts
|
|
|
|
// accounts
|
|
|
|
const MainContainer = require('./main-container') |
|
|
|
const MainContainer = require('./main-container') |
|
|
@ -74,6 +74,7 @@ function mapStateToProps (state) { |
|
|
|
transForward: state.appState.transForward, |
|
|
|
transForward: state.appState.transForward, |
|
|
|
isMascara: state.metamask.isMascara, |
|
|
|
isMascara: state.metamask.isMascara, |
|
|
|
isOnboarding: Boolean(!noActiveNotices || seedWords || !isInitialized), |
|
|
|
isOnboarding: Boolean(!noActiveNotices || seedWords || !isInitialized), |
|
|
|
|
|
|
|
isPopup: state.metamask.isPopup, |
|
|
|
seedWords: state.metamask.seedWords, |
|
|
|
seedWords: state.metamask.seedWords, |
|
|
|
unapprovedTxs: state.metamask.unapprovedTxs, |
|
|
|
unapprovedTxs: state.metamask.unapprovedTxs, |
|
|
|
unapprovedMsgs: state.metamask.unapprovedMsgs, |
|
|
|
unapprovedMsgs: state.metamask.unapprovedMsgs, |
|
|
@ -86,6 +87,7 @@ function mapStateToProps (state) { |
|
|
|
frequentRpcList: state.metamask.frequentRpcList || [], |
|
|
|
frequentRpcList: state.metamask.frequentRpcList || [], |
|
|
|
currentCurrency: state.metamask.currentCurrency, |
|
|
|
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
|
|
|
|
// state needed to get account dropdown temporarily rendering from app bar
|
|
|
|
identities, |
|
|
|
identities, |
|
|
@ -351,9 +353,9 @@ App.prototype.renderBackButton = function (style, justArrow = false) { |
|
|
|
App.prototype.renderPrimary = function () { |
|
|
|
App.prototype.renderPrimary = function () { |
|
|
|
log.debug('rendering primary') |
|
|
|
log.debug('rendering primary') |
|
|
|
var props = this.props |
|
|
|
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) |
|
|
|
return h(MascaraFirstTime) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|