diff options
author | kumavis <kumavis@users.noreply.github.com> | 2016-05-19 08:48:12 +0800 |
---|---|---|
committer | kumavis <kumavis@users.noreply.github.com> | 2016-05-19 08:48:12 +0800 |
commit | fbc7a48fef0d2f8b337e0b2e7223e1bac7e05544 (patch) | |
tree | be238b51c7f551253d57bb8c44976be471390764 /ui/app/components | |
parent | c85c594d5bc6c894f6a76b66c3df33c39cc76a3a (diff) | |
parent | e64e3bbea54eeb946eeae70ced1c381ed52fa4e3 (diff) | |
download | tangerine-wallet-browser-fbc7a48fef0d2f8b337e0b2e7223e1bac7e05544.tar tangerine-wallet-browser-fbc7a48fef0d2f8b337e0b2e7223e1bac7e05544.tar.gz tangerine-wallet-browser-fbc7a48fef0d2f8b337e0b2e7223e1bac7e05544.tar.bz2 tangerine-wallet-browser-fbc7a48fef0d2f8b337e0b2e7223e1bac7e05544.tar.lz tangerine-wallet-browser-fbc7a48fef0d2f8b337e0b2e7223e1bac7e05544.tar.xz tangerine-wallet-browser-fbc7a48fef0d2f8b337e0b2e7223e1bac7e05544.tar.zst tangerine-wallet-browser-fbc7a48fef0d2f8b337e0b2e7223e1bac7e05544.zip |
Merge pull request #190 from MetaMask/MenuDroppo
Drop-down menu
Diffstat (limited to 'ui/app/components')
-rw-r--r-- | ui/app/components/drop-menu-item.js | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/ui/app/components/drop-menu-item.js b/ui/app/components/drop-menu-item.js new file mode 100644 index 000000000..c8e61278c --- /dev/null +++ b/ui/app/components/drop-menu-item.js @@ -0,0 +1,31 @@ +const Component = require('react').Component +const h = require('react-hyperscript') +const inherits = require('util').inherits + +module.exports = DropMenuItem + + +inherits(DropMenuItem, Component) +function DropMenuItem() { + Component.call(this) +} + +DropMenuItem.prototype.render = function() { + + return h('li.drop-menu-item', { + onClick:() => { + this.props.closeMenu() + this.props.action() + }, + style: { + listStyle: 'none', + padding: '6px 16px 6px 5px', + fontFamily: 'Transat Medium', + color: 'rgb(125, 128, 130)', + cursor: 'pointer', + }, + }, [ + this.props.icon, + this.props.label, + ]) +} |