mirror of
https://github.com/makeplane/plane
synced 2025-08-07 19:59:33 +00:00
fix: updated unread count UI and validation (#5016)
This commit is contained in:
@@ -8,6 +8,8 @@ import { Breadcrumbs } from "@plane/ui";
|
||||
import { BreadcrumbLink } from "@/components/common";
|
||||
import { SidebarHamburgerToggle } from "@/components/core";
|
||||
import { NotificationSidebarHeaderOptions } from "@/components/workspace-notifications";
|
||||
// helpers
|
||||
import { getNumberCount } from "@/helpers/string.helper";
|
||||
|
||||
type TNotificationSidebarHeader = {
|
||||
workspaceSlug: string;
|
||||
@@ -32,7 +34,9 @@ export const NotificationSidebarHeader: FC<TNotificationSidebarHeader> = observe
|
||||
label={
|
||||
<div className="flex items-center gap-2">
|
||||
<div className="font-medium">Notifications</div>
|
||||
<div className="rounded-full text-xs px-1.5 py-0.5 bg-custom-primary-100">{notificationsCount}</div>
|
||||
<div className="rounded-full text-xs px-1.5 py-0.5 bg-custom-primary-100 text-white">
|
||||
{getNumberCount(notificationsCount)}
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
icon={<Bell className="h-4 w-4 text-custom-text-300" />}
|
||||
|
||||
Reference in New Issue
Block a user