aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Tseung <alextsg@gmail.com>2017-12-07 11:48:26 +0800
committerAlexander Tseung <alextsg@gmail.com>2017-12-07 11:48:26 +0800
commit02736d2d361a415f145404a96f553c73e3707eb5 (patch)
tree73badab9d23b815ce661c7d315ad6402fa13e88d
parent500fbe450a10e1a3c756707e44225b196601372e (diff)
downloadtangerine-wallet-browser-02736d2d361a415f145404a96f553c73e3707eb5.tar
tangerine-wallet-browser-02736d2d361a415f145404a96f553c73e3707eb5.tar.gz
tangerine-wallet-browser-02736d2d361a415f145404a96f553c73e3707eb5.tar.bz2
tangerine-wallet-browser-02736d2d361a415f145404a96f553c73e3707eb5.tar.lz
tangerine-wallet-browser-02736d2d361a415f145404a96f553c73e3707eb5.tar.xz
tangerine-wallet-browser-02736d2d361a415f145404a96f553c73e3707eb5.tar.zst
tangerine-wallet-browser-02736d2d361a415f145404a96f553c73e3707eb5.zip
Connect to redux for retryTransaction
-rw-r--r--ui/app/components/transaction-list-item.js12
1 files changed, 10 insertions, 2 deletions
diff --git a/ui/app/components/transaction-list-item.js b/ui/app/components/transaction-list-item.js
index 9c512a89d..56e90e26c 100644
--- a/ui/app/components/transaction-list-item.js
+++ b/ui/app/components/transaction-list-item.js
@@ -1,6 +1,7 @@
const Component = require('react').Component
const h = require('react-hyperscript')
const inherits = require('util').inherits
+const connect = require('react-redux').connect
const EthBalance = require('./eth-balance')
const addressSummary = require('../util').addressSummary
@@ -13,7 +14,14 @@ const actions = require('../actions')
const TransactionIcon = require('./transaction-list-item-icon')
const ShiftListItem = require('./shift-list-item')
-module.exports = TransactionListItem
+
+const mapDispatchToProps = dispatch => {
+ return {
+ retryTransaction: transactionId => dispatch(actions.retryTransaction(transactionId)),
+ }
+}
+
+module.exports = connect(null, mapDispatchToProps)(TransactionListItem)
inherits(TransactionListItem, Component)
function TransactionListItem () {
@@ -141,7 +149,7 @@ TransactionListItem.prototype.render = function () {
TransactionListItem.prototype.resubmit = function () {
const { transaction } = this.props
- this.props.dispatch(actions.resubmitTx(transaction.id))
+ this.props.retryTransaction(transaction.id)
}
function domainField (txParams) {