diff options
author | Chi Kei Chan <chikeichan@gmail.com> | 2017-10-16 13:28:25 +0800 |
---|---|---|
committer | Chi Kei Chan <chikeichan@gmail.com> | 2017-10-18 13:38:00 +0800 |
commit | 5ee6e4d3b3d61d804340c22b73a608fb6b44a9b2 (patch) | |
tree | 1020f2895a6a8368a2f50597c8bf86512b98a5a9 /ui/app/components/dropdowns | |
parent | ac43872c1a1468057974648c8ae90bf1edd708d7 (diff) | |
download | tangerine-wallet-browser-5ee6e4d3b3d61d804340c22b73a608fb6b44a9b2.tar tangerine-wallet-browser-5ee6e4d3b3d61d804340c22b73a608fb6b44a9b2.tar.gz tangerine-wallet-browser-5ee6e4d3b3d61d804340c22b73a608fb6b44a9b2.tar.bz2 tangerine-wallet-browser-5ee6e4d3b3d61d804340c22b73a608fb6b44a9b2.tar.lz tangerine-wallet-browser-5ee6e4d3b3d61d804340c22b73a608fb6b44a9b2.tar.xz tangerine-wallet-browser-5ee6e4d3b3d61d804340c22b73a608fb6b44a9b2.tar.zst tangerine-wallet-browser-5ee6e4d3b3d61d804340c22b73a608fb6b44a9b2.zip |
wip
Diffstat (limited to 'ui/app/components/dropdowns')
-rw-r--r-- | ui/app/components/dropdowns/components/menu.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ui/app/components/dropdowns/components/menu.js b/ui/app/components/dropdowns/components/menu.js index 0cbe0f342..323103f0b 100644 --- a/ui/app/components/dropdowns/components/menu.js +++ b/ui/app/components/dropdowns/components/menu.js @@ -41,4 +41,11 @@ Divider.prototype.render = function () { return h('div.menu__divider') } -module.exports = { Menu, Item, Divider } +inherits(CloseArea, Component) +function CloseArea () { Component.call(this) } + +CloseArea.prototype.render = function () { + return h('div.menu__close-area', { onClick: this.props.onClick }) +} + +module.exports = { Menu, Item, Divider, CloseArea } |