|
|
@ -4,24 +4,17 @@ const addressSummary = require('../util').addressSummary |
|
|
|
const explorerLink = require('../../lib/explorer-link') |
|
|
|
const explorerLink = require('../../lib/explorer-link') |
|
|
|
|
|
|
|
|
|
|
|
module.exports = function(transactions, network) { |
|
|
|
module.exports = function(transactions, network) { |
|
|
|
return h('details', { key: 'transaction-list' }, [ |
|
|
|
return h('.tx-list', { |
|
|
|
|
|
|
|
|
|
|
|
h('summary', [ |
|
|
|
|
|
|
|
h('div.font-small', {style: {display: 'inline'}}, 'Transactions'), |
|
|
|
|
|
|
|
]), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
h('.flex-row.flex-space-around', [ |
|
|
|
|
|
|
|
h('div.font-small','To'), |
|
|
|
|
|
|
|
h('div.font-small','Amount'), |
|
|
|
|
|
|
|
]), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
h('.tx-list', { |
|
|
|
|
|
|
|
style: { |
|
|
|
style: { |
|
|
|
overflowY: 'auto', |
|
|
|
overflowY: 'auto', |
|
|
|
height: '180px', |
|
|
|
height: '180px', |
|
|
|
|
|
|
|
textAlign: 'center', |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[ |
|
|
|
|
|
|
|
h('div.font-small', {style: {display: 'inline'}}, 'Transactions'), |
|
|
|
|
|
|
|
|
|
|
|
transactions.map((transaction) => { |
|
|
|
transactions.map((transaction) => { |
|
|
|
return h('.tx.flex-row.flex-space-around', [ |
|
|
|
return h('.tx.flex-row.flex-space-around', [ |
|
|
|
h('a.font-small', |
|
|
|
h('a.font-small', |
|
|
@ -33,7 +26,6 @@ module.exports = function(transactions, network) { |
|
|
|
h('div.font-small', formatBalance(transaction.txParams.value)) |
|
|
|
h('div.font-small', formatBalance(transaction.txParams.value)) |
|
|
|
]) |
|
|
|
]) |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
] |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
]) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|