mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 18:00:18 +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) => {
|
handleCancel = (event) => {
|
||||||
const { transactionGroup: { initialTransaction: { id } = {} } = {}, onCancel } = this.props
|
const { onCancel, onClose } = this.props
|
||||||
|
onCancel(event)
|
||||||
event.stopPropagation()
|
onClose()
|
||||||
onCancel(id)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
handleRetry = (event) => {
|
handleRetry = (event) => {
|
||||||
const { transactionGroup: { initialTransaction: { id } = {} } = {}, onRetry } = this.props
|
const { onClose, onRetry } = this.props
|
||||||
|
onRetry(event)
|
||||||
event.stopPropagation()
|
onClose()
|
||||||
onRetry(id)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
handleCopyTxId = () => {
|
handleCopyTxId = () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user