1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Add copy button to transaction list

This commit is contained in:
Dan Finlay 2016-06-29 14:12:58 -07:00
parent 5c57169219
commit fb92b8a5fe

View File

@ -5,6 +5,7 @@ const inherits = require('util').inherits
const EtherBalance = require('./eth-balance')
const addressSummary = require('../util').addressSummary
const explorerLink = require('../../lib/explorer-link')
const CopyButton = require('./copyButton')
const vreme = new (require('vreme'))
const TransactionIcon = require('./transaction-list-item-icon')
@ -67,6 +68,8 @@ TransactionListItem.prototype.render = function () {
recipientField(txParams, transaction, isTx, isMsg),
]),
transaction.hash ? h(CopyButton, { value: transaction.hash }) : null,
isTx ? h(EtherBalance, {
value: txParams.value,
}) : h('.flex-column'),