|
|
@ -157,12 +157,9 @@ App.prototype.toggleMetamaskActive = function(){ |
|
|
|
App.prototype.renderPrimary = function(state){ |
|
|
|
App.prototype.renderPrimary = function(state){ |
|
|
|
var state = this.props |
|
|
|
var state = this.props |
|
|
|
|
|
|
|
|
|
|
|
// If seed words haven't been dismissed yet, show them still.
|
|
|
|
|
|
|
|
/* |
|
|
|
|
|
|
|
if (state.seedWords) { |
|
|
|
if (state.seedWords) { |
|
|
|
return h(CreateVaultCompleteScreen, {key: 'createVaultComplete'}) |
|
|
|
return h(CreateVaultCompleteScreen, {key: 'createVaultComplete'}) |
|
|
|
} |
|
|
|
} |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// show initialize screen
|
|
|
|
// show initialize screen
|
|
|
|
if (!state.isInitialized) { |
|
|
|
if (!state.isInitialized) { |
|
|
@ -176,6 +173,9 @@ App.prototype.renderPrimary = function(state){ |
|
|
|
case 'restoreVault': |
|
|
|
case 'restoreVault': |
|
|
|
return h(RestoreVaultScreen, {key: 'restoreVault'}) |
|
|
|
return h(RestoreVaultScreen, {key: 'restoreVault'}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case 'createVaultComplete': |
|
|
|
|
|
|
|
return h(CreateVaultCompleteScreen, {key: 'createVaultComplete'}) |
|
|
|
|
|
|
|
|
|
|
|
default: |
|
|
|
default: |
|
|
|
return h(InitializeMenuScreen, {key: 'menuScreenInit'}) |
|
|
|
return h(InitializeMenuScreen, {key: 'menuScreenInit'}) |
|
|
|
|
|
|
|
|
|
|
@ -190,9 +190,6 @@ App.prototype.renderPrimary = function(state){ |
|
|
|
// show current view
|
|
|
|
// show current view
|
|
|
|
switch (state.currentView.name) { |
|
|
|
switch (state.currentView.name) { |
|
|
|
|
|
|
|
|
|
|
|
case 'createVaultComplete': |
|
|
|
|
|
|
|
return h(CreateVaultCompleteScreen, {key: 'created-vault'}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case 'accounts': |
|
|
|
case 'accounts': |
|
|
|
return h(AccountsScreen, {key: 'accounts'}) |
|
|
|
return h(AccountsScreen, {key: 'accounts'}) |
|
|
|
|
|
|
|
|
|
|
|