|
|
@ -107,7 +107,8 @@ export default class Routes extends Component { |
|
|
|
theme: PropTypes.string, |
|
|
|
theme: PropTypes.string, |
|
|
|
sendStage: PropTypes.string, |
|
|
|
sendStage: PropTypes.string, |
|
|
|
isNetworkUsed: PropTypes.bool, |
|
|
|
isNetworkUsed: PropTypes.bool, |
|
|
|
hasAnAccountWithNoFundsOnNetwork: PropTypes.bool, |
|
|
|
allAccountsOnNetworkAreEmpty: PropTypes.bool, |
|
|
|
|
|
|
|
isTestNet: PropTypes.bool, |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
static contextTypes = { |
|
|
|
static contextTypes = { |
|
|
@ -363,7 +364,8 @@ export default class Routes extends Component { |
|
|
|
browserEnvironmentOs: os, |
|
|
|
browserEnvironmentOs: os, |
|
|
|
browserEnvironmentBrowser: browser, |
|
|
|
browserEnvironmentBrowser: browser, |
|
|
|
isNetworkUsed, |
|
|
|
isNetworkUsed, |
|
|
|
hasAnAccountWithNoFundsOnNetwork, |
|
|
|
allAccountsOnNetworkAreEmpty, |
|
|
|
|
|
|
|
isTestNet, |
|
|
|
} = this.props; |
|
|
|
} = this.props; |
|
|
|
const loadMessage = |
|
|
|
const loadMessage = |
|
|
|
loadingMessage || isNetworkLoading |
|
|
|
loadingMessage || isNetworkLoading |
|
|
@ -371,7 +373,10 @@ export default class Routes extends Component { |
|
|
|
: null; |
|
|
|
: null; |
|
|
|
|
|
|
|
|
|
|
|
const shouldShowNetworkInfo = |
|
|
|
const shouldShowNetworkInfo = |
|
|
|
isUnlocked && !isNetworkUsed && hasAnAccountWithNoFundsOnNetwork; |
|
|
|
isUnlocked && |
|
|
|
|
|
|
|
!isTestNet && |
|
|
|
|
|
|
|
!isNetworkUsed && |
|
|
|
|
|
|
|
allAccountsOnNetworkAreEmpty; |
|
|
|
|
|
|
|
|
|
|
|
const windowType = getEnvironmentType(); |
|
|
|
const windowType = getEnvironmentType(); |
|
|
|
|
|
|
|
|
|
|
|