aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/accounts
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2016-06-30 08:12:08 +0800
committerkumavis <aaron@kumavis.me>2016-06-30 08:12:08 +0800
commit41598a32a6fcecaeff5d90ada881bc4cfd52c08f (patch)
tree3e0fddda3ffaf59c7752f1bd38b5a2aabec5ad25 /ui/app/accounts
parent94768175bf7630e9f8fd590181cb7816fd0ece7d (diff)
parentf7bb3cdcfebacc3f3970b469503db202e0bdda28 (diff)
downloadtangerine-wallet-browser-41598a32a6fcecaeff5d90ada881bc4cfd52c08f.tar.gz
tangerine-wallet-browser-41598a32a6fcecaeff5d90ada881bc4cfd52c08f.tar.zst
tangerine-wallet-browser-41598a32a6fcecaeff5d90ada881bc4cfd52c08f.zip
Merge branch 'master' of github.com:MetaMask/metamask-plugin into networkIndication
Diffstat (limited to 'ui/app/accounts')
-rw-r--r--ui/app/accounts/account-list-item.js12
1 files changed, 3 insertions, 9 deletions
diff --git a/ui/app/accounts/account-list-item.js b/ui/app/accounts/account-list-item.js
index 6bba6e145..1010516e2 100644
--- a/ui/app/accounts/account-list-item.js
+++ b/ui/app/accounts/account-list-item.js
@@ -4,7 +4,7 @@ const inherits = require('util').inherits
const ethUtil = require('ethereumjs-util')
const EtherBalance = require('../components/eth-balance')
-const copyToClipboard = require('copy-to-clipboard')
+const CopyButton = require('../components/copyButton')
const Identicon = require('../components/identicon')
module.exports = NewComponent
@@ -61,14 +61,8 @@ NewComponent.prototype.render = function () {
margin: '0 20px',
},
}, [
- h('img.cursor-pointer.color-orange', {
- title: 'Copy Address',
- src: 'images/copy.svg',
- onClick: (event) => {
- event.stopPropagation()
- event.preventDefault()
- copyToClipboard(ethUtil.toChecksumAddress(identity.address))
- },
+ h(CopyButton, {
+ value: ethUtil.toChecksumAddress(identity.address),
}),
]),
])