diff options
Improve tx list style
Tx list no longer enlarges on hover, and failed transactions no longer have hover styles nor direct to an explorer page.
Diffstat (limited to 'ui/app/components')
-rw-r--r-- | ui/app/components/transaction-list.js | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/ui/app/components/transaction-list.js b/ui/app/components/transaction-list.js index 6cc35243f..f85aab70f 100644 --- a/ui/app/components/transaction-list.js +++ b/ui/app/components/transaction-list.js @@ -59,38 +59,15 @@ module.exports = function(transactions, network) { function renderTransaction(transaction, i){ - var panelOpts = { - key: `tx-${transaction.id + i}`, - identiconKey: transaction.txParams.to, - onClick: (event) => { - if (!transaction.hash) return - var url = explorerLink(transaction.hash, parseInt(network)) - chrome.tabs.create({ url }) - }, - attributes: [ - { - key: 'TIME', - value: formatDate(transaction.time), - }, - { - key: 'TO', - value: addressSummary(transaction.txParams.to), - }, - { - key: 'VALUE', - value: formatBalance(transaction.txParams.value), - }, - ] - } - var txParams = transaction.txParams var date = formatDate(transaction.time) return ( - h('.transaction-list-item.flex-row.flex-space-between.cursor-pointer', { + h(`.transaction-list-item.flex-row.flex-space-between${transaction.hash ? '.pointer' : ''}`, { key: `tx-${transaction.id + i}`, onClick: (event) => { + if (!transaction.hash) return var url = explorerLink(transaction.hash, parseInt(network)) chrome.tabs.create({ url }) }, |