diff --git a/components/ActionBar/DesktopNavigation.tsx b/components/ActionBar/DesktopNavigation.tsx index b30d6efc..f8a63c7c 100644 --- a/components/ActionBar/DesktopNavigation.tsx +++ b/components/ActionBar/DesktopNavigation.tsx @@ -99,7 +99,6 @@ export const NavigationContent = (props: NavigationProps) => { {onWriterPage && } -
{ let setOpen = useSidebarStore((s) => s.setOpen); + let { identity } = useIdentityData(); + let unreads = identity?.notifications[0]?.count; return ( ); diff --git a/components/ActionBar/NavigationButtons.tsx b/components/ActionBar/NavigationButtons.tsx index 1befbd88..8c1f2b3d 100644 --- a/components/ActionBar/NavigationButtons.tsx +++ b/components/ActionBar/NavigationButtons.tsx @@ -106,7 +106,18 @@ export function NotificationButton() { ) } - label="Notifications" + label={ + unreads ? ( + + Notifications + + {unreads} + + + ) : ( + "Notifications" + ) + } active={active} className={unreads ? "text-accent-contrast! font-bold" : ""} /> diff --git a/components/ActionBar/Publications.tsx b/components/ActionBar/Publications.tsx index ab8ce11e..ff01a462 100644 --- a/components/ActionBar/Publications.tsx +++ b/components/ActionBar/Publications.tsx @@ -57,10 +57,11 @@ export const PublicationButtons = (props: { className?: string }) => { return ( <> -
+
PUBLICATIONS
{hasLooseleafs && ( @@ -80,10 +81,10 @@ export const PublicationButtons = (props: { className?: string }) => {
)} - {identity?.publications?.map((d) => { return ; })} +