diff options
author | kumavis <aaron@kumavis.me> | 2016-05-19 08:50:22 +0800 |
---|---|---|
committer | kumavis <aaron@kumavis.me> | 2016-05-19 08:50:22 +0800 |
commit | 5a17a6376ca4aeb586d8eeef35ea6b42ff647cfb (patch) | |
tree | 7c49c1da9446b2d71eee0f1af901603daed94bcf /ui/app/components | |
parent | 8c6a451ac76572a6566dff594b586db718b68784 (diff) | |
parent | fbc7a48fef0d2f8b337e0b2e7223e1bac7e05544 (diff) | |
download | tangerine-wallet-browser-5a17a6376ca4aeb586d8eeef35ea6b42ff647cfb.tar.gz tangerine-wallet-browser-5a17a6376ca4aeb586d8eeef35ea6b42ff647cfb.tar.zst tangerine-wallet-browser-5a17a6376ca4aeb586d8eeef35ea6b42ff647cfb.zip |
Merge branch 'eyeballs' of github.com:MetaMask/metamask-plugin into eyeballs
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, + ]) +} |