|
|
@ -22,15 +22,24 @@ Network.prototype.render = function () { |
|
|
|
let iconName, hoverText |
|
|
|
let iconName, hoverText |
|
|
|
|
|
|
|
|
|
|
|
if (networkNumber === 'loading') { |
|
|
|
if (networkNumber === 'loading') { |
|
|
|
return h('img.network-indicator', { |
|
|
|
return h('span', { |
|
|
|
title: 'Attempting to connect to blockchain.', |
|
|
|
style: { |
|
|
|
|
|
|
|
display: 'flex', |
|
|
|
|
|
|
|
alignItems: 'center', |
|
|
|
|
|
|
|
flexDirection: 'row', |
|
|
|
|
|
|
|
}, |
|
|
|
onClick: (event) => this.props.onClick(event), |
|
|
|
onClick: (event) => this.props.onClick(event), |
|
|
|
|
|
|
|
}, [ |
|
|
|
|
|
|
|
h('img', { |
|
|
|
|
|
|
|
title: 'Attempting to connect to blockchain.', |
|
|
|
style: { |
|
|
|
style: { |
|
|
|
width: '27px', |
|
|
|
width: '27px', |
|
|
|
marginRight: '-27px', |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
src: 'images/loading.svg', |
|
|
|
src: 'images/loading.svg', |
|
|
|
}) |
|
|
|
}), |
|
|
|
|
|
|
|
h('i.fa.fa-sort-desc'), |
|
|
|
|
|
|
|
]) |
|
|
|
|
|
|
|
|
|
|
|
} else if (providerName === 'mainnet') { |
|
|
|
} else if (providerName === 'mainnet') { |
|
|
|
hoverText = 'Main Ethereum Network' |
|
|
|
hoverText = 'Main Ethereum Network' |
|
|
|
iconName = 'ethereum-network' |
|
|
|
iconName = 'ethereum-network' |
|
|
|