mirror of
https://github.com/status-im/safe-react.git
synced 2025-02-02 12:53:24 +00:00
Prevent modal from closing on its own
This commit is contained in:
parent
0814eb528e
commit
62232e6dc2
@ -26,7 +26,6 @@ const TransferDescription = ({
|
||||
}: TransferDescriptionProps): ReactElement | null => {
|
||||
const recipientName = useSelector((state) => getNameFromAddressBookSelector(state, recipient))
|
||||
const [sendModalOpen, setSendModalOpen] = React.useState(false)
|
||||
|
||||
const sendModalOpenHandler = () => {
|
||||
setSendModalOpen(true)
|
||||
}
|
||||
|
@ -73,13 +73,11 @@ const ExpandedModuleTx = ({ tx }: { tx: SafeModuleTransaction }): ReactElement =
|
||||
</Block>
|
||||
<Hairline />
|
||||
<Block className={cn(classes.txDataContainer, classes.incomingTxBlock)}>
|
||||
{recipient && (
|
||||
<TransferDescription
|
||||
amountWithSymbol={amountWithSymbol}
|
||||
isTokenTransfer={!sameAddress(amountWithSymbol, NOT_AVAILABLE)}
|
||||
recipient={recipient}
|
||||
/>
|
||||
)}
|
||||
<TransferDescription
|
||||
amountWithSymbol={amountWithSymbol}
|
||||
isTokenTransfer={!sameAddress(amountWithSymbol, NOT_AVAILABLE)}
|
||||
recipient={recipient}
|
||||
/>
|
||||
</Block>
|
||||
</Col>
|
||||
</Row>
|
||||
|
@ -35,6 +35,10 @@ const TxsTable = ({ classes }) => {
|
||||
trackEvent({ category: SAFE_NAVIGATION_EVENT, action: 'Transactions' })
|
||||
}, [trackEvent])
|
||||
|
||||
useEffect(() => {
|
||||
console.log('La coupeeeee')
|
||||
}, [])
|
||||
|
||||
const handleTxExpand = (rowId) => {
|
||||
setExpandedTx((prevRowId) => (prevRowId === rowId ? null : rowId))
|
||||
}
|
||||
@ -121,12 +125,9 @@ const TxsTable = ({ classes }) => {
|
||||
colSpan={6}
|
||||
style={{ paddingBottom: 0, paddingTop: 0 }}
|
||||
>
|
||||
<Collapse
|
||||
component={() => <ExpandedTx row={row} />}
|
||||
in={expandedTx === rowId}
|
||||
timeout="auto"
|
||||
unmountOnExit
|
||||
/>
|
||||
<Collapse in={expandedTx === rowId} unmountOnExit>
|
||||
<ExpandedTx row={row} />
|
||||
</Collapse>
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
</React.Fragment>
|
||||
|
Loading…
x
Reference in New Issue
Block a user