aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorAlexander Tseung <alextsg@gmail.com>2018-03-31 08:37:24 +0800
committerAlexander Tseung <alextsg@gmail.com>2018-03-31 08:37:24 +0800
commit2fa554a6414d2231dcd6f2476866ea9c1c7b80ca (patch)
tree27e54743a9e182fa3240d541b764440b7f977656 /ui
parent51ad2b03c82febf5259d32f4bd6f440b24235d7b (diff)
downloadtangerine-wallet-browser-2fa554a6414d2231dcd6f2476866ea9c1c7b80ca.tar
tangerine-wallet-browser-2fa554a6414d2231dcd6f2476866ea9c1c7b80ca.tar.gz
tangerine-wallet-browser-2fa554a6414d2231dcd6f2476866ea9c1c7b80ca.tar.bz2
tangerine-wallet-browser-2fa554a6414d2231dcd6f2476866ea9c1c7b80ca.tar.lz
tangerine-wallet-browser-2fa554a6414d2231dcd6f2476866ea9c1c7b80ca.tar.xz
tangerine-wallet-browser-2fa554a6414d2231dcd6f2476866ea9c1c7b80ca.tar.zst
tangerine-wallet-browser-2fa554a6414d2231dcd6f2476866ea9c1c7b80ca.zip
Fix conf-tx render
Diffstat (limited to 'ui')
-rw-r--r--ui/app/app.js5
-rw-r--r--ui/app/components/tx-list.js5
2 files changed, 8 insertions, 2 deletions
diff --git a/ui/app/app.js b/ui/app/app.js
index af2b70353..8a21220b1 100644
--- a/ui/app/app.js
+++ b/ui/app/app.js
@@ -4,7 +4,6 @@ const connect = require('react-redux').connect
const { Route, Switch, Redirect, withRouter } = require('react-router-dom')
const { compose } = require('recompose')
const h = require('react-hyperscript')
-const PropTypes = require('prop-types')
const actions = require('./actions')
const classnames = require('classnames')
@@ -732,6 +731,10 @@ function mapDispatchToProps (dispatch, ownProps) {
}
}
+App.contextTypes = {
+ t: PropTypes.func,
+}
+
module.exports = compose(
withRouter,
connect(mapStateToProps, mapDispatchToProps)
diff --git a/ui/app/components/tx-list.js b/ui/app/components/tx-list.js
index 0cef64ca6..70643aa36 100644
--- a/ui/app/components/tx-list.js
+++ b/ui/app/components/tx-list.js
@@ -120,7 +120,10 @@ TxList.prototype.renderTransactionListItem = function (transaction, conversionRa
const isUnapproved = transactionStatus === 'unapproved'
if (isUnapproved) {
- opts.onClick = () => history.push(CONFIRM_TRANSACTION_ROUTE)
+ opts.onClick = () => {
+ this.props.showConfTxPage({ id: transactionId })
+ history.push(CONFIRM_TRANSACTION_ROUTE)
+ }
opts.transactionStatus = this.context.t('notStarted')
} else if (transactionHash) {
opts.onClick = () => this.view(transactionHash, transactionNetworkId)