|
|
@ -22,7 +22,7 @@ Network.prototype.render = function () { |
|
|
|
let iconName, hoverText |
|
|
|
let iconName, hoverText |
|
|
|
|
|
|
|
|
|
|
|
if (networkNumber === 'loading') { |
|
|
|
if (networkNumber === 'loading') { |
|
|
|
return h('span', { |
|
|
|
return h('span.pointer', { |
|
|
|
style: { |
|
|
|
style: { |
|
|
|
display: 'flex', |
|
|
|
display: 'flex', |
|
|
|
alignItems: 'center', |
|
|
|
alignItems: 'center', |
|
|
@ -37,7 +37,7 @@ Network.prototype.render = function () { |
|
|
|
}, |
|
|
|
}, |
|
|
|
src: 'images/loading.svg', |
|
|
|
src: 'images/loading.svg', |
|
|
|
}), |
|
|
|
}), |
|
|
|
h('i.fa.fa-sort-desc'), |
|
|
|
h('i.fa.fa-caret-down'), |
|
|
|
]) |
|
|
|
]) |
|
|
|
} else if (providerName === 'mainnet') { |
|
|
|
} else if (providerName === 'mainnet') { |
|
|
|
hoverText = 'Main Ethereum Network' |
|
|
|
hoverText = 'Main Ethereum Network' |
|
|
@ -73,7 +73,8 @@ Network.prototype.render = function () { |
|
|
|
style: { |
|
|
|
style: { |
|
|
|
color: '#039396', |
|
|
|
color: '#039396', |
|
|
|
}}, |
|
|
|
}}, |
|
|
|
'Ethereum Main Net'), |
|
|
|
'Main Network'), |
|
|
|
|
|
|
|
h('i.fa.fa-caret-down.fa-lg'), |
|
|
|
]) |
|
|
|
]) |
|
|
|
case 'ropsten-test-network': |
|
|
|
case 'ropsten-test-network': |
|
|
|
return h('.network-indicator', [ |
|
|
|
return h('.network-indicator', [ |
|
|
@ -83,6 +84,7 @@ Network.prototype.render = function () { |
|
|
|
color: '#ff6666', |
|
|
|
color: '#ff6666', |
|
|
|
}}, |
|
|
|
}}, |
|
|
|
'Ropsten Test Net'), |
|
|
|
'Ropsten Test Net'), |
|
|
|
|
|
|
|
h('i.fa.fa-caret-down.fa-lg'), |
|
|
|
]) |
|
|
|
]) |
|
|
|
case 'kovan-test-network': |
|
|
|
case 'kovan-test-network': |
|
|
|
return h('.network-indicator', [ |
|
|
|
return h('.network-indicator', [ |
|
|
@ -92,6 +94,7 @@ Network.prototype.render = function () { |
|
|
|
color: '#690496', |
|
|
|
color: '#690496', |
|
|
|
}}, |
|
|
|
}}, |
|
|
|
'Kovan Test Net'), |
|
|
|
'Kovan Test Net'), |
|
|
|
|
|
|
|
h('i.fa.fa-caret-down.fa-lg'), |
|
|
|
]) |
|
|
|
]) |
|
|
|
case 'rinkeby-test-network': |
|
|
|
case 'rinkeby-test-network': |
|
|
|
return h('.network-indicator', [ |
|
|
|
return h('.network-indicator', [ |
|
|
@ -101,6 +104,7 @@ Network.prototype.render = function () { |
|
|
|
color: '#e7a218', |
|
|
|
color: '#e7a218', |
|
|
|
}}, |
|
|
|
}}, |
|
|
|
'Rinkeby Test Net'), |
|
|
|
'Rinkeby Test Net'), |
|
|
|
|
|
|
|
h('i.fa.fa-caret-down.fa-lg'), |
|
|
|
]) |
|
|
|
]) |
|
|
|
default: |
|
|
|
default: |
|
|
|
return h('.network-indicator', [ |
|
|
|
return h('.network-indicator', [ |
|
|
@ -116,6 +120,7 @@ Network.prototype.render = function () { |
|
|
|
color: '#AEAEAE', |
|
|
|
color: '#AEAEAE', |
|
|
|
}}, |
|
|
|
}}, |
|
|
|
'Private Network'), |
|
|
|
'Private Network'), |
|
|
|
|
|
|
|
h('i.fa.fa-caret-down.fa-lg'), |
|
|
|
]) |
|
|
|
]) |
|
|
|
} |
|
|
|
} |
|
|
|
})(), |
|
|
|
})(), |
|
|
|