fix: notification item key
This commit is contained in:
@@ -107,9 +107,9 @@ export default function NotificationList() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="">
|
<div>
|
||||||
{notifications.map((notification, index) => (
|
{notifications.map((notification) => (
|
||||||
<NotificationItem key={index} notification={notification} />
|
<NotificationItem key={notification.id} notification={notification} />
|
||||||
))}
|
))}
|
||||||
<div className="text-center text-sm text-muted-foreground">
|
<div className="text-center text-sm text-muted-foreground">
|
||||||
{until ? <div ref={bottomRef}>{t('loading...')}</div> : t('no more notifications')}
|
{until ? <div ref={bottomRef}>{t('loading...')}</div> : t('no more notifications')}
|
||||||
|
|||||||
Reference in New Issue
Block a user