fix: updated unread count UI and validation (#5016)

This commit is contained in:
guru_sainath
2024-07-02 19:43:22 +05:30
committed by GitHub
parent 86464c1d6f
commit fc33238d89

View File

@@ -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" />}