aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/account-dropdowns.js
diff options
context:
space:
mode:
authorThomas <tmashuang@gmail.com>2018-03-10 07:01:48 +0800
committerThomas <tmashuang@gmail.com>2018-03-10 07:01:48 +0800
commitd5b1d6182ba73b28efd6862034038156c3e596c1 (patch)
tree8bebaedc1f9c95bb2d17b12be2fd16d50f75ad0f /ui/app/components/account-dropdowns.js
parent0db4ba1086f56422752dd4b9e3754a273d23a866 (diff)
parent634e5d8f55efc6c307a867556116a565eee21b58 (diff)
downloadtangerine-wallet-browser-d5b1d6182ba73b28efd6862034038156c3e596c1.tar
tangerine-wallet-browser-d5b1d6182ba73b28efd6862034038156c3e596c1.tar.gz
tangerine-wallet-browser-d5b1d6182ba73b28efd6862034038156c3e596c1.tar.bz2
tangerine-wallet-browser-d5b1d6182ba73b28efd6862034038156c3e596c1.tar.lz
tangerine-wallet-browser-d5b1d6182ba73b28efd6862034038156c3e596c1.tar.xz
tangerine-wallet-browser-d5b1d6182ba73b28efd6862034038156c3e596c1.tar.zst
tangerine-wallet-browser-d5b1d6182ba73b28efd6862034038156c3e596c1.zip
Merge branch 'master' into selenium-e2e
Diffstat (limited to 'ui/app/components/account-dropdowns.js')
-rw-r--r--ui/app/components/account-dropdowns.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/app/components/account-dropdowns.js b/ui/app/components/account-dropdowns.js
index 0c34a5154..1cd7a0847 100644
--- a/ui/app/components/account-dropdowns.js
+++ b/ui/app/components/account-dropdowns.js
@@ -1,5 +1,5 @@
const Component = require('react').Component
-const PropTypes = require('react').PropTypes
+const PropTypes = require('prop-types')
const h = require('react-hyperscript')
const actions = require('../actions')
const genAccountLink = require('etherscan-link').createAccountLink
@@ -173,7 +173,7 @@ class AccountDropdowns extends Component {
minWidth: '180px',
},
isOpen: optionsMenuActive,
- onClickOutside: () => {
+ onClickOutside: (event) => {
const { classList } = event.target
const isNotToggleElement = !classList.contains(this.optionsMenuToggleClassName)
if (optionsMenuActive && isNotToggleElement) {