aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/tx-list.js
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2017-10-28 01:39:40 +0800
committerChi Kei Chan <chikeichan@gmail.com>2017-10-28 08:29:12 +0800
commitc8c918d44e26e9541beead982ef0ed79a56d6e6f (patch)
tree9763d9c455910fd9b93b987d020617f4b8f13399 /ui/app/components/tx-list.js
parent5d8b53bcf491bfe6dd59f4986f02da70b91df5cd (diff)
downloadtangerine-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.js6
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';