|
|
@ -5,7 +5,6 @@ const inherits = require('util').inherits |
|
|
|
const connect = require('react-redux').connect |
|
|
|
const connect = require('react-redux').connect |
|
|
|
const actions = require('../../actions') |
|
|
|
const actions = require('../../actions') |
|
|
|
const genAccountLink = require('etherscan-link').createAccountLink |
|
|
|
const genAccountLink = require('etherscan-link').createAccountLink |
|
|
|
const copyToClipboard = require('copy-to-clipboard') |
|
|
|
|
|
|
|
const { Menu, Item, CloseArea } = require('./components/menu') |
|
|
|
const { Menu, Item, CloseArea } = require('./components/menu') |
|
|
|
|
|
|
|
|
|
|
|
TokenMenuDropdown.contextTypes = { |
|
|
|
TokenMenuDropdown.contextTypes = { |
|
|
@ -56,14 +55,6 @@ TokenMenuDropdown.prototype.render = function () { |
|
|
|
}, |
|
|
|
}, |
|
|
|
text: this.context.t('hideToken'), |
|
|
|
text: this.context.t('hideToken'), |
|
|
|
}), |
|
|
|
}), |
|
|
|
h(Item, { |
|
|
|
|
|
|
|
onClick: (e) => { |
|
|
|
|
|
|
|
e.stopPropagation() |
|
|
|
|
|
|
|
copyToClipboard(this.props.token.address) |
|
|
|
|
|
|
|
this.props.onClose() |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
text: this.context.t('copyContractAddress'), |
|
|
|
|
|
|
|
}), |
|
|
|
|
|
|
|
h(Item, { |
|
|
|
h(Item, { |
|
|
|
onClick: (e) => { |
|
|
|
onClick: (e) => { |
|
|
|
e.stopPropagation() |
|
|
|
e.stopPropagation() |
|
|
|