diff options
Diffstat (limited to 'src/view/shell/desktop/LeftNav.tsx')
-rw-r--r-- | src/view/shell/desktop/LeftNav.tsx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/view/shell/desktop/LeftNav.tsx b/src/view/shell/desktop/LeftNav.tsx index c5486a8fe..bcff844f1 100644 --- a/src/view/shell/desktop/LeftNav.tsx +++ b/src/view/shell/desktop/LeftNav.tsx @@ -70,7 +70,7 @@ function BackBtn() { } interface NavItemProps { - count?: number + count?: string href: string icon: JSX.Element iconFilled: JSX.Element @@ -95,7 +95,7 @@ const NavItem = observer( <Link href={href} style={styles.navItem}> <View style={[styles.navItemIconWrapper]}> {isCurrent ? iconFilled : icon} - {typeof count === 'number' && count > 0 && ( + {typeof count === 'string' && count && ( <Text type="button" style={styles.navItemCount}> {count} </Text> @@ -162,9 +162,7 @@ export const DesktopLeftNav = observer(function DesktopLeftNav() { /> <NavItem href="/notifications" - count={ - store.me.notifications.unreadCount + store.invitedUsers.numNotifs - } + count={store.me.notifications.unreadCountLabel} icon={<BellIcon strokeWidth={2} size={24} style={pal.text} />} iconFilled={ <BellIconSolid strokeWidth={1.5} size={24} style={pal.text} /> |