diff options
author | Dan Finlay <dan@danfinlay.com> | 2017-07-28 09:43:09 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2017-07-28 09:43:09 +0800 |
commit | d1828b6dc98c95a284350f0d22bf4b6be08ebacd (patch) | |
tree | 430c30f729e0444f07d41f04fdd184da128a8817 /ui | |
parent | a25c4f34c0063a0f3d3b1989d9303cb75952d443 (diff) | |
download | tangerine-wallet-browser-d1828b6dc98c95a284350f0d22bf4b6be08ebacd.tar.gz tangerine-wallet-browser-d1828b6dc98c95a284350f0d22bf4b6be08ebacd.tar.zst tangerine-wallet-browser-d1828b6dc98c95a284350f0d22bf4b6be08ebacd.zip |
Fix react warning
Diffstat (limited to 'ui')
-rw-r--r-- | ui/app/app.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/app/app.js b/ui/app/app.js index aadaa6f03..b251baefd 100644 --- a/ui/app/app.js +++ b/ui/app/app.js @@ -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)), }, |