aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/network.js
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2016-07-29 10:29:28 +0800
committerGitHub <noreply@github.com>2016-07-29 10:29:28 +0800
commit591fe3f9be46ee53a7e9ad841347fee87aae7e50 (patch)
treed3336e17bd74fcf0c4b6edbc194b28ec37abe644 /ui/app/components/network.js
parent0b4124874343ce8bee6a27efa9a8c3b43a47fb2b (diff)
parent6151339840b9d05b170d39c2b2f6c195a93d03c9 (diff)
downloadtangerine-wallet-browser-591fe3f9be46ee53a7e9ad841347fee87aae7e50.tar
tangerine-wallet-browser-591fe3f9be46ee53a7e9ad841347fee87aae7e50.tar.gz
tangerine-wallet-browser-591fe3f9be46ee53a7e9ad841347fee87aae7e50.tar.bz2
tangerine-wallet-browser-591fe3f9be46ee53a7e9ad841347fee87aae7e50.tar.lz
tangerine-wallet-browser-591fe3f9be46ee53a7e9ad841347fee87aae7e50.tar.xz
tangerine-wallet-browser-591fe3f9be46ee53a7e9ad841347fee87aae7e50.tar.zst
tangerine-wallet-browser-591fe3f9be46ee53a7e9ad841347fee87aae7e50.zip
Merge pull request #498 from MetaMask/AddEthClassic
Add eth classic
Diffstat (limited to 'ui/app/components/network.js')
-rw-r--r--ui/app/components/network.js21
1 files changed, 18 insertions, 3 deletions
diff --git a/ui/app/components/network.js b/ui/app/components/network.js
index 032e71699..22b11aa6c 100644
--- a/ui/app/components/network.js
+++ b/ui/app/components/network.js
@@ -11,11 +11,13 @@ function Network () {
}
Network.prototype.render = function () {
- const state = this.props
- const networkNumber = state.network
+ const props = this.props
+ const networkNumber = props.network
+ const providerName = props.provider.type
let iconName, hoverText
if (networkNumber === 'loading') {
+
return h('img', {
title: 'Attempting to connect to blockchain.',
onClick: (event) => this.props.onClick(event),
@@ -25,9 +27,13 @@ Network.prototype.render = function () {
},
src: 'images/loading.svg',
})
- } else if (parseInt(networkNumber) === 1) {
+
+ } else if (providerName === 'mainnet') {
hoverText = 'Main Ethereum Network'
iconName = 'ethereum-network'
+ } else if (providerName === 'classic') {
+ hoverText = 'Ethereum Classic Network'
+ iconName = 'classic-network'
} else if (parseInt(networkNumber) === 2) {
hoverText = 'Morden Test Network'
iconName = 'morden-test-network'
@@ -55,6 +61,15 @@ Network.prototype.render = function () {
}},
'Etherum Main Net'),
])
+ case 'classic-network':
+ return h('.network-indicator', [
+ h('.menu-icon.hollow-diamond'),
+ h('.network-name', {
+ style: {
+ color: '#039396',
+ }},
+ 'Etherum Classic'),
+ ])
case 'morden-test-network':
return h('.network-indicator', [
h('.menu-icon.red-dot'),