|
|
|
@ -300,11 +300,8 @@ App.prototype.renderDropdown = function () { |
|
|
|
|
}), |
|
|
|
|
]) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
App.prototype.renderBackToInitButton = function () { |
|
|
|
|
App.prototype.renderBackButton = function (style, justArrow = false) { |
|
|
|
|
var props = this.props |
|
|
|
|
var button = null |
|
|
|
|
var backButton = function (style, justArrow = false) { |
|
|
|
|
return ( |
|
|
|
|
h('.flex-row', { |
|
|
|
|
key: 'leftArrow', |
|
|
|
@ -321,7 +318,11 @@ App.prototype.renderBackToInitButton = function () { |
|
|
|
|
}, 'BACK'), |
|
|
|
|
]) |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
App.prototype.renderBackToInitButton = function () { |
|
|
|
|
var props = this.props |
|
|
|
|
var button = null |
|
|
|
|
if (!props.isUnlocked) { |
|
|
|
|
if (props.currentView.name === 'InitMenu') { |
|
|
|
|
button = props.forgottenPassword ? h('.flex-row', { |
|
|
|
@ -357,7 +358,7 @@ App.prototype.renderBackToInitButton = function () { |
|
|
|
|
fontFamily: 'Montserrat Bold', |
|
|
|
|
color: 'rgb(174, 174, 174)', |
|
|
|
|
} |
|
|
|
|
return backButton(style, true) |
|
|
|
|
return this.renderBackButton(style, true) |
|
|
|
|
case 'restoreVault': |
|
|
|
|
style = { |
|
|
|
|
position: 'absolute', |
|
|
|
@ -367,7 +368,7 @@ App.prototype.renderBackToInitButton = function () { |
|
|
|
|
fontFamily: 'Montserrat Bold', |
|
|
|
|
color: 'rgb(174, 174, 174)', |
|
|
|
|
} |
|
|
|
|
return backButton(style, true) |
|
|
|
|
return this.renderBackButton(style, true) |
|
|
|
|
default: |
|
|
|
|
style = { |
|
|
|
|
position: 'absolute', |
|
|
|
@ -379,7 +380,7 @@ App.prototype.renderBackToInitButton = function () { |
|
|
|
|
width: '71.969px', |
|
|
|
|
alignItems: 'flex-end', |
|
|
|
|
} |
|
|
|
|
return backButton(style) |
|
|
|
|
return this.renderBackButton(style) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|