diff options
author | Dan <danjm.com@gmail.com> | 2017-10-28 01:39:40 +0800 |
---|---|---|
committer | Chi Kei Chan <chikeichan@gmail.com> | 2017-10-28 08:29:12 +0800 |
commit | c8c918d44e26e9541beead982ef0ed79a56d6e6f (patch) | |
tree | 9763d9c455910fd9b93b987d020617f4b8f13399 /ui/app/components/tx-list.js | |
parent | 5d8b53bcf491bfe6dd59f4986f02da70b91df5cd (diff) | |
download | tangerine-wallet-browser-c8c918d44e26e9541beead982ef0ed79a56d6e6f.tar.gz tangerine-wallet-browser-c8c918d44e26e9541beead982ef0ed79a56d6e6f.tar.zst tangerine-wallet-browser-c8c918d44e26e9541beead982ef0ed79a56d6e6f.zip |
Add utility for getting token data; get token data in tx-list even if token has been removed.
Diffstat (limited to 'ui/app/components/tx-list.js')
-rw-r--r-- | ui/app/components/tx-list.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/app/components/tx-list.js b/ui/app/components/tx-list.js index a02849d0e..2f6c1fee8 100644 --- a/ui/app/components/tx-list.js +++ b/ui/app/components/tx-list.js @@ -9,6 +9,7 @@ const ShiftListItem = require('./shift-list-item') const { formatBalance, formatDate } = require('../util') const { showConfTxPage } = require('../actions') const classnames = require('classnames') +const { tokenInfoGetter } = require('../token-util') module.exports = connect(mapStateToProps, mapDispatchToProps)(TxList) @@ -30,6 +31,10 @@ function TxList () { Component.call(this) } +TxList.prototype.componentWillMount = function () { + this.tokenInfoGetter = tokenInfoGetter() +} + TxList.prototype.render = function () { const { txsToRender, showConfTxPage } = this.props @@ -99,6 +104,7 @@ TxList.prototype.renderTransactionListItem = function (transaction, conversionRa transactionAmount, transactionHash, conversionRate, + tokenInfoGetter: this.tokenInfoGetter, } const isUnapproved = transactionStatus === 'unapproved'; |