|
|
|
@ -46,7 +46,7 @@ function mapStateToProps (state) { |
|
|
|
|
unconfMsgs: state.metamask.unconfMsgs, |
|
|
|
|
menuOpen: state.appState.menuOpen, |
|
|
|
|
network: state.metamask.network, |
|
|
|
|
provider: state.metamask.provider |
|
|
|
|
provider: state.metamask.provider, |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -229,7 +229,7 @@ App.prototype.renderNetworkDropdown = function () { |
|
|
|
|
action: () => props.dispatch(actions.setRpcTarget('http://localhost:8545')), |
|
|
|
|
icon: h('i.fa.fa-question-circle.fa-lg', { ariaHidden: true }), |
|
|
|
|
}), |
|
|
|
|
this.renderCustomOption(props.provider.rpcTarget) |
|
|
|
|
this.renderCustomOption(props.provider.rpcTarget), |
|
|
|
|
]) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -359,7 +359,7 @@ App.prototype.toggleMetamaskActive = function () { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
App.prototype.renderCustomOption = function (rpcTarget) { |
|
|
|
|
switch(rpcTarget){ |
|
|
|
|
switch (rpcTarget) { |
|
|
|
|
case undefined: |
|
|
|
|
return h(DropMenuItem, { |
|
|
|
|
label: 'Custom RPC', |
|
|
|
@ -374,6 +374,6 @@ App.prototype.renderCustomOption = function (rpcTarget) { |
|
|
|
|
closeMenu: () => this.setState({ isNetworkMenuOpen: false }), |
|
|
|
|
action: () => this.props.dispatch(actions.showConfigPage()), |
|
|
|
|
icon: h('i.fa.fa-question-circle.fa-lg', { ariaHidden: true }), |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|