fix: replace readAt with read in notifications-dropdown
Align with Notification interface that uses 'read' boolean field
This commit is contained in:
parent
bf14357285
commit
e2b2f303e7
1 changed files with 3 additions and 3 deletions
|
|
@ -71,7 +71,7 @@ export function NotificationsDropdown() {
|
|||
key={notification.id}
|
||||
className={cn(
|
||||
"flex flex-col gap-1 p-3 rounded-md hover:bg-muted/50 cursor-pointer transition-colors relative",
|
||||
!notification.readAt && "bg-muted/20"
|
||||
!notification.read && "bg-muted/20"
|
||||
)}
|
||||
onClick={() => markAsRead(notification.id)}
|
||||
>
|
||||
|
|
@ -80,7 +80,7 @@ export function NotificationsDropdown() {
|
|||
{getIcon(notification.type)}
|
||||
</div>
|
||||
<div className="flex-1 space-y-1">
|
||||
<p className={cn("text-sm font-medium leading-none", !notification.readAt && "font-bold")}>
|
||||
<p className={cn("text-sm font-medium leading-none", !notification.read && "font-bold")}>
|
||||
{notification.title}
|
||||
</p>
|
||||
<p className="text-xs text-muted-foreground line-clamp-2">
|
||||
|
|
@ -90,7 +90,7 @@ export function NotificationsDropdown() {
|
|||
{new Date(notification.createdAt).toLocaleDateString()}
|
||||
</p>
|
||||
</div>
|
||||
{!notification.readAt && (
|
||||
{!notification.read && (
|
||||
<div className="h-2 w-2 rounded-full bg-primary mt-1" />
|
||||
)}
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue