Chat Drawer: fix key

This commit is contained in:
Enrico Ros
2024-07-09 11:23:38 -07:00
parent 1d543169e2
commit 110ca34e1d
@@ -343,12 +343,8 @@ function ChatDrawer(props: {
{item.title}
</Typography>
) : item.type === 'nav-item-info-message' ? (
<Box sx={{ display: 'flex', alignItems: 'center', justifyContent: 'center', gap: 1, ml: 2 }}>
<Typography
key={'nav-info-' + idx}
level='body-xs'
sx={{ color: 'primary.softColor', my: 'calc(var(--ListItem-minHeight) / 4)' }}
>
<Box key={'nav-info-' + idx} sx={{ display: 'flex', alignItems: 'center', justifyContent: 'center', gap: 1, ml: 2 }}>
<Typography level='body-xs' sx={{ color: 'primary.softColor', my: 'calc(var(--ListItem-minHeight) / 4)' }}>
{filterHasStars && <StarOutlineRoundedIcon sx={{ color: 'primary.softColor', fontSize: 'xl', mb: -0.5, mr: 1 }} />}
{item.message}
</Typography>