aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/drop-menu-item.js
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-07-29 01:53:51 +0800
committerDan Finlay <dan@danfinlay.com>2016-07-29 01:53:51 +0800
commit9b43ec2278a5647c427c426ed798ab90bbf093cc (patch)
tree52223352efe509619e86e3a92aa4e5df3ff13eeb /ui/app/components/drop-menu-item.js
parentdaaac17be20faf3f53f3a4b04d70504ebf894568 (diff)
downloadtangerine-wallet-browser-9b43ec2278a5647c427c426ed798ab90bbf093cc.tar
tangerine-wallet-browser-9b43ec2278a5647c427c426ed798ab90bbf093cc.tar.gz
tangerine-wallet-browser-9b43ec2278a5647c427c426ed798ab90bbf093cc.tar.bz2
tangerine-wallet-browser-9b43ec2278a5647c427c426ed798ab90bbf093cc.tar.lz
tangerine-wallet-browser-9b43ec2278a5647c427c426ed798ab90bbf093cc.tar.xz
tangerine-wallet-browser-9b43ec2278a5647c427c426ed798ab90bbf093cc.tar.zst
tangerine-wallet-browser-9b43ec2278a5647c427c426ed798ab90bbf093cc.zip
Add eth classic to provider menu
Diffstat (limited to 'ui/app/components/drop-menu-item.js')
-rw-r--r--ui/app/components/drop-menu-item.js14
1 files changed, 9 insertions, 5 deletions
diff --git a/ui/app/components/drop-menu-item.js b/ui/app/components/drop-menu-item.js
index f5800f799..8bff3e131 100644
--- a/ui/app/components/drop-menu-item.js
+++ b/ui/app/components/drop-menu-item.js
@@ -32,20 +32,24 @@ DropMenuItem.prototype.render = function () {
}
DropMenuItem.prototype.activeNetworkRender = function () {
- var activeNetwork = this.props.activeNetworkRender
+ let activeNetwork = this.props.activeNetworkRender
+ let { provider } = this.props
if (activeNetwork === undefined) return
switch (this.props.label) {
case 'Main Ethereum Network':
- if (activeNetwork === '1') return h('.check', ' ✓')
+ if (provider.type === 'mainnet') return h('.check', '✓')
+ break
+ case 'Ethereum Classic Network':
+ if (provider.type === 'classic') return h('.check', '✓')
break
case 'Morden Test Network':
- if (activeNetwork === '2') return h('.check', ' ✓')
+ if (activeNetwork === '2') return h('.check', '✓')
break
case 'Localhost 8545':
- if (activeNetwork === 'http://localhost:8545') return h('.check', ' ✓')
+ if (activeNetwork === 'http://localhost:8545') return h('.check', '✓')
break
default:
- if (activeNetwork === 'custom') return h('.check', ' ✓')
+ if (activeNetwork === 'custom') return h('.check', '✓')
}
}