diff options
author | Alexander Tseung <alextsg@gmail.com> | 2018-09-21 10:35:45 +0800 |
---|---|---|
committer | Alexander Tseung <alextsg@gmail.com> | 2018-09-21 10:44:23 +0800 |
commit | 431beb943675f2e9b7b5e5ce9c7f55d45f10905f (patch) | |
tree | f4517b6f8737d3a2d5393b18cdca463e3a1bbfd0 /ui/app/components/modals/transaction-details | |
parent | 2cfdc95eebc3e0a878017090f22e5136cff709a6 (diff) | |
download | tangerine-wallet-browser-431beb943675f2e9b7b5e5ce9c7f55d45f10905f.tar tangerine-wallet-browser-431beb943675f2e9b7b5e5ce9c7f55d45f10905f.tar.gz tangerine-wallet-browser-431beb943675f2e9b7b5e5ce9c7f55d45f10905f.tar.bz2 tangerine-wallet-browser-431beb943675f2e9b7b5e5ce9c7f55d45f10905f.tar.lz tangerine-wallet-browser-431beb943675f2e9b7b5e5ce9c7f55d45f10905f.tar.xz 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')
-rw-r--r-- | ui/app/components/modals/transaction-details/transaction-details.component.js | 9 |
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}`])} > |