1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Fix react warning

This commit is contained in:
Dan Finlay 2017-07-27 18:43:09 -07:00
parent a25c4f34c0
commit d1828b6dc9

View File

@ -214,6 +214,7 @@ App.prototype.renderNetworkDropdown = function () {
h(
DropdownMenuItem,
{
key: 'main',
closeMenu: () => this.setState({ isNetworkMenuOpen: !isOpen }),
onClick: () => props.dispatch(actions.setProviderType('mainnet')),
},
@ -227,6 +228,7 @@ App.prototype.renderNetworkDropdown = function () {
h(
DropdownMenuItem,
{
key: 'ropsten',
closeMenu: () => this.setState({ isNetworkMenuOpen: !isOpen }),
onClick: () => props.dispatch(actions.setProviderType('ropsten')),
},
@ -240,6 +242,7 @@ App.prototype.renderNetworkDropdown = function () {
h(
DropdownMenuItem,
{
key: 'kovan',
closeMenu: () => this.setState({ isNetworkMenuOpen: !isOpen }),
onClick: () => props.dispatch(actions.setProviderType('kovan')),
},
@ -253,6 +256,7 @@ App.prototype.renderNetworkDropdown = function () {
h(
DropdownMenuItem,
{
key: 'rinkeby',
closeMenu: () => this.setState({ isNetworkMenuOpen: !isOpen }),
onClick: () => props.dispatch(actions.setProviderType('rinkeby')),
},
@ -266,6 +270,7 @@ App.prototype.renderNetworkDropdown = function () {
h(
DropdownMenuItem,
{
key: 'default',
closeMenu: () => this.setState({ isNetworkMenuOpen: !isOpen }),
onClick: () => props.dispatch(actions.setDefaultRpcTarget()),
},
@ -564,6 +569,7 @@ App.prototype.renderCommonRpc = function (rpcList, provider) {
return h(
DropdownMenuItem,
{
key: `common${rpc}`,
closeMenu: () => this.setState({ isNetworkMenuOpen: false }),
onClick: () => props.dispatch(actions.setRpcTarget(rpc)),
},