(Fix) Native Coin transfer not shown (#1670)
* allow to display native coin transfers in the expanded view * fix issue with fragment being passed to material-ui menu
This commit is contained in:
parent
8d73ebd177
commit
76ef99fa96
|
@ -63,12 +63,14 @@ export const EllipsisTransactionDetails = ({
|
|||
<div className={classes.container} role="menu" tabIndex={0}>
|
||||
<MoreHorizIcon onClick={handleClick} onKeyDown={handleClick} />
|
||||
<Menu anchorEl={anchorEl} id="simple-menu" keepMounted onClose={closeMenuHandler} open={Boolean(anchorEl)}>
|
||||
{sendModalOpenHandler ? (
|
||||
<>
|
||||
<MenuItem onClick={sendModalOpenHandler}>Send Again</MenuItem>
|
||||
<Divider />
|
||||
</>
|
||||
) : null}
|
||||
{sendModalOpenHandler
|
||||
? [
|
||||
<MenuItem key="send-again-button" onClick={sendModalOpenHandler}>
|
||||
Send Again
|
||||
</MenuItem>,
|
||||
<Divider key="divider" />,
|
||||
]
|
||||
: null}
|
||||
{knownAddress ? (
|
||||
<MenuItem onClick={addOrEditEntryHandler}>Edit Address book Entry</MenuItem>
|
||||
) : (
|
||||
|
|
|
@ -45,7 +45,9 @@ const TxDescription = ({ tx }: { tx: Transaction }): React.ReactElement => {
|
|||
{tx.type === TransactionTypes.SETTINGS && <SettingsDescriptionTx tx={tx} />}
|
||||
{tx.type === TransactionTypes.CUSTOM && <CustomDescriptionTx tx={tx} />}
|
||||
{tx.type === TransactionTypes.UPGRADE && <UpgradeDescriptionTx tx={tx} />}
|
||||
{[TransactionTypes.TOKEN, TransactionTypes.COLLECTIBLE].includes(tx.type) && <TransferDescriptionTx tx={tx} />}
|
||||
{[TransactionTypes.TOKEN, TransactionTypes.COLLECTIBLE, TransactionTypes.OUTGOING].includes(tx.type) && (
|
||||
<TransferDescriptionTx tx={tx} />
|
||||
)}
|
||||
</Block>
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue