|
|
@ -106,7 +106,7 @@ export default function TransactionListItem ({ transactionGroup, isEarliestNonce |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
setShowDetails((prev) => !prev) |
|
|
|
setShowDetails((prev) => !prev) |
|
|
|
}, [isUnapproved, id]) |
|
|
|
}, [isUnapproved, history, id]) |
|
|
|
|
|
|
|
|
|
|
|
const cancelButton = useMemo(() => { |
|
|
|
const cancelButton = useMemo(() => { |
|
|
|
const cancelButton = ( |
|
|
|
const cancelButton = ( |
|
|
@ -131,7 +131,7 @@ export default function TransactionListItem ({ transactionGroup, isEarliestNonce |
|
|
|
</Tooltip> |
|
|
|
</Tooltip> |
|
|
|
) : cancelButton |
|
|
|
) : cancelButton |
|
|
|
|
|
|
|
|
|
|
|
}, [cancelEnabled, cancelTransaction, hasCancelled]) |
|
|
|
}, [isPending, t, isUnapproved, cancelEnabled, cancelTransaction, hasCancelled]) |
|
|
|
|
|
|
|
|
|
|
|
const speedUpButton = useMemo(() => { |
|
|
|
const speedUpButton = useMemo(() => { |
|
|
|
if (!shouldShowSpeedUp || !isPending || isUnapproved) { |
|
|
|
if (!shouldShowSpeedUp || !isPending || isUnapproved) { |
|
|
@ -147,7 +147,7 @@ export default function TransactionListItem ({ transactionGroup, isEarliestNonce |
|
|
|
{ t('speedUp') } |
|
|
|
{ t('speedUp') } |
|
|
|
</Button> |
|
|
|
</Button> |
|
|
|
) |
|
|
|
) |
|
|
|
}, [shouldShowSpeedUp, isPending, retryTransaction]) |
|
|
|
}, [shouldShowSpeedUp, isUnapproved, t, isPending, retryTransaction]) |
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<> |
|
|
|
<> |
|
|
|