mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +01:00
close details when button is pressed (#8694)
This commit is contained in:
parent
88bed7181f
commit
68f8abbbca
@ -63,17 +63,15 @@ export default class TransactionListItemDetails extends PureComponent {
|
||||
}
|
||||
|
||||
handleCancel = (event) => {
|
||||
const { transactionGroup: { initialTransaction: { id } = {} } = {}, onCancel } = this.props
|
||||
|
||||
event.stopPropagation()
|
||||
onCancel(id)
|
||||
const { onCancel, onClose } = this.props
|
||||
onCancel(event)
|
||||
onClose()
|
||||
}
|
||||
|
||||
handleRetry = (event) => {
|
||||
const { transactionGroup: { initialTransaction: { id } = {} } = {}, onRetry } = this.props
|
||||
|
||||
event.stopPropagation()
|
||||
onRetry(id)
|
||||
const { onClose, onRetry } = this.props
|
||||
onRetry(event)
|
||||
onClose()
|
||||
}
|
||||
|
||||
handleCopyTxId = () => {
|
||||
|
Loading…
Reference in New Issue
Block a user