chat implemented, testing needed
This commit is contained in:
@@ -76,6 +76,11 @@ export default function ChatSidebar() {
|
||||
{chat.chat_type}
|
||||
</div>
|
||||
</div>
|
||||
{(chat.unread_count ?? 0) > 0 && (
|
||||
<span className="ml-auto shrink-0 rounded-full bg-brand-accent px-1.5 py-0.5 text-[10px] font-bold leading-none text-brand-bg">
|
||||
{(chat.unread_count ?? 0) > 99 ? "99+" : chat.unread_count}
|
||||
</span>
|
||||
)}
|
||||
</NavLink>
|
||||
</li>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user