diff options
author | Dan Finlay <dan@danfinlay.com> | 2016-07-29 01:53:51 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2016-07-29 01:53:51 +0800 |
commit | 9b43ec2278a5647c427c426ed798ab90bbf093cc (patch) | |
tree | 52223352efe509619e86e3a92aa4e5df3ff13eeb /ui/app/app.js | |
parent | daaac17be20faf3f53f3a4b04d70504ebf894568 (diff) | |
download | tangerine-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/app.js')
-rw-r--r-- | ui/app/app.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ui/app/app.js b/ui/app/app.js index df5350f67..b8deedc13 100644 --- a/ui/app/app.js +++ b/ui/app/app.js @@ -131,6 +131,7 @@ App.prototype.renderAppBar = function () { h(NetworkIndicator, { network: this.props.network, + provider: this.props.provider, onClick: (event) => { event.preventDefault() event.stopPropagation() @@ -221,6 +222,16 @@ App.prototype.renderNetworkDropdown = function () { action: () => props.dispatch(actions.setProviderType('mainnet')), icon: h('.menu-icon.diamond'), activeNetworkRender: props.network, + provider: props.provider, + }), + + h(DropMenuItem, { + label: 'Ethereum Classic Network', + closeMenu: () => this.setState({ isNetworkMenuOpen: false }), + action: () => props.dispatch(actions.setProviderType('classic')), + icon: h('.menu-icon.hollow-diamond'), + activeNetworkRender: props.network, + provider: props.provider, }), h(DropMenuItem, { @@ -238,6 +249,7 @@ App.prototype.renderNetworkDropdown = function () { icon: h('i.fa.fa-question-circle.fa-lg', { ariaHidden: true }), activeNetworkRender: props.provider.rpcTarget, }), + this.renderCustomOption(props.provider.rpcTarget), ]) } |