aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/accounts/account-list-item.js
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2016-06-30 08:06:31 +0800
committerGitHub <noreply@github.com>2016-06-30 08:06:31 +0800
commitf7bb3cdcfebacc3f3970b469503db202e0bdda28 (patch)
tree29833bc540d8f30378e82deaae842a21aecb2ab6 /ui/app/accounts/account-list-item.js
parent3ae479f5ac3a569eb3840f119148bc4db626a295 (diff)
parent2880f8631c4de09860b2be01c90b4b30d08c8415 (diff)
downloadtangerine-wallet-browser-f7bb3cdcfebacc3f3970b469503db202e0bdda28.tar.gz
tangerine-wallet-browser-f7bb3cdcfebacc3f3970b469503db202e0bdda28.tar.zst
tangerine-wallet-browser-f7bb3cdcfebacc3f3970b469503db202e0bdda28.zip
Merge pull request #368 from MetaMask/CopyTxHash
Copy tx hash
Diffstat (limited to 'ui/app/accounts/account-list-item.js')
-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),
}),
]),
])