fix: DetailsRow memo function
fix: cancel transaction button condition
This commit is contained in:
parent
1c652f4b54
commit
f49257e14c
1 changed files with 6 additions and 2 deletions
|
|
@ -225,7 +225,7 @@ const DetailsRow = ({ it: tx }) => {
|
||||||
) : (
|
) : (
|
||||||
errorElements
|
errorElements
|
||||||
)}
|
)}
|
||||||
{tx.txClass === 'cashOut' && getStatus(tx) !== 'Cancelled' && (
|
{tx.txClass === 'cashOut' && getStatus(tx) === 'Pending' && (
|
||||||
<ActionButton
|
<ActionButton
|
||||||
color="primary"
|
color="primary"
|
||||||
Icon={CancelIcon}
|
Icon={CancelIcon}
|
||||||
|
|
@ -265,4 +265,8 @@ const DetailsRow = ({ it: tx }) => {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
export default memo(DetailsRow, (prev, next) => prev.id === next.id)
|
export default memo(
|
||||||
|
DetailsRow,
|
||||||
|
(prev, next) =>
|
||||||
|
prev.it.id === next.it.id && prev.it.hasError === next.it.hasError
|
||||||
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue