fix: inbox count (#6635)
This commit is contained in:
parent
527c4ece57
commit
db4ecee475
1 changed files with 7 additions and 2 deletions
|
|
@ -10,10 +10,9 @@ import { useTranslation } from "@plane/i18n";
|
||||||
import { Tooltip } from "@plane/ui";
|
import { Tooltip } from "@plane/ui";
|
||||||
// components
|
// components
|
||||||
import { SidebarNavItem } from "@/components/sidebar";
|
import { SidebarNavItem } from "@/components/sidebar";
|
||||||
|
import { NotificationAppSidebarOption } from "@/components/workspace-notifications";
|
||||||
// hooks
|
// hooks
|
||||||
import { useAppTheme, useUser, useUserPermissions, useWorkspace } from "@/hooks/store";
|
import { useAppTheme, useUser, useUserPermissions, useWorkspace } from "@/hooks/store";
|
||||||
// plane web imports
|
|
||||||
import { UpgradeBadge } from "@/plane-web/components/workspace";
|
|
||||||
// local imports
|
// local imports
|
||||||
import { getSidebarNavigationItemIcon } from "./helper";
|
import { getSidebarNavigationItemIcon } from "./helper";
|
||||||
|
|
||||||
|
|
@ -78,6 +77,12 @@ export const SidebarItem: FC<TSidebarItemProps> = observer((props) => {
|
||||||
{icon}
|
{icon}
|
||||||
{!sidebarCollapsed && <p className="text-sm leading-5 font-medium">{t(item.labelTranslationKey)}</p>}
|
{!sidebarCollapsed && <p className="text-sm leading-5 font-medium">{t(item.labelTranslationKey)}</p>}
|
||||||
</div>
|
</div>
|
||||||
|
{item.key === "inbox" && (
|
||||||
|
<NotificationAppSidebarOption
|
||||||
|
workspaceSlug={workspaceSlug?.toString()}
|
||||||
|
isSidebarCollapsed={sidebarCollapsed ?? false}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
</SidebarNavItem>
|
</SidebarNavItem>
|
||||||
</Link>
|
</Link>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue