aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/modals/transaction-details/transaction-details.component.js
diff options
context:
space:
mode:
authorAlexander Tseung <alextsg@gmail.com>2018-09-21 10:35:45 +0800
committerAlexander Tseung <alextsg@gmail.com>2018-09-21 10:44:23 +0800
commit431beb943675f2e9b7b5e5ce9c7f55d45f10905f (patch)
treef4517b6f8737d3a2d5393b18cdca463e3a1bbfd0 /ui/app/components/modals/transaction-details/transaction-details.component.js
parent2cfdc95eebc3e0a878017090f22e5136cff709a6 (diff)
downloadtangerine-wallet-browser-431beb943675f2e9b7b5e5ce9c7f55d45f10905f.tar.gz
tangerine-wallet-browser-431beb943675f2e9b7b5e5ce9c7f55d45f10905f.tar.zst
tangerine-wallet-browser-431beb943675f2e9b7b5e5ce9c7f55d45f10905f.zip
Fix multiplyCurrencies. Add onClose prop for Modal component. Remove hideModal from modal components.
Diffstat (limited to 'ui/app/components/modals/transaction-details/transaction-details.component.js')
-rw-r--r--ui/app/components/modals/transaction-details/transaction-details.component.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/ui/app/components/modals/transaction-details/transaction-details.component.js b/ui/app/components/modals/transaction-details/transaction-details.component.js
index 7eec028fe..ef438d01f 100644
--- a/ui/app/components/modals/transaction-details/transaction-details.component.js
+++ b/ui/app/components/modals/transaction-details/transaction-details.component.js
@@ -18,15 +18,20 @@ export default class TransactionConfirmed extends PureComponent {
showCancel: PropTypes.bool,
}
+ handleSubmit = () => {
+ this.props.hideModal()
+ }
+
render () {
const { t } = this.context
- const { transaction, onRetry, showRetry, onCancel, showCancel, hideModal } = this.props
+ const { transaction, onRetry, showRetry, onCancel, showCancel } = this.props
const { txParams: { nonce } = {} } = transaction
const decimalNonce = nonce && hexToDecimal(nonce)
return (
<Modal
- onSubmit={() => hideModal()}
+ onSubmit={this.handleSubmit}
+ onClose={this.handleSubmit}
submitText={t('ok')}
headerText={t('transactionWithNonce', [`#${decimalNonce}`])}
>