Set key for list in direct messages

This commit is contained in:
Nicola Benaglia 2025-05-30 08:07:36 +02:00
parent 3a77600f6a
commit f445bcd5b1

View File

@ -1726,6 +1726,7 @@ export const Group = ({
> >
{directs.map((direct: any) => ( {directs.map((direct: any) => (
<List <List
key={direct?.timestamp + direct?.sender}
sx={{ sx={{
width: '100%', width: '100%',
}} }}
@ -1756,15 +1757,15 @@ export const Group = ({
}, 200); }, 200);
}} }}
sx={{ sx={{
display: 'flex',
width: '100%',
flexDirection: 'column',
cursor: 'pointer',
padding: '2px',
borderRadius: '2px',
background: background:
direct?.address === selectedDirect?.address && direct?.address === selectedDirect?.address &&
theme.palette.background.default, theme.palette.background.default,
borderRadius: '2px',
cursor: 'pointer',
display: 'flex',
flexDirection: 'column',
padding: '2px',
width: '100%',
}} }}
> >
<Box <Box