diff --git a/web/src/components/AppSidebar/AppSidebar.tsx b/web/src/components/AppSidebar/AppSidebar.tsx index d72f61e0..047568c6 100644 --- a/web/src/components/AppSidebar/AppSidebar.tsx +++ b/web/src/components/AppSidebar/AppSidebar.tsx @@ -658,50 +658,6 @@ const SidebarBrand = ({ className }: { className?: string }) => { ); }; -const InboxFooterLink = () => { - const t = useTranslate(); - const location = useLocation(); - const { setMobileOpen } = useAppSidebar(); - const { data: notifications = [] } = useNotifications(); - const unreadCount = notifications.filter((notification) => notification.status === UserNotification_Status.UNREAD).length; - const active = getSidebarRouteKind(location.pathname) === "inbox"; - const accessibleLabel = unreadCount > 0 ? `${t("common.inbox")}, ${unreadCount} ${t("inbox.unread")}` : t("common.inbox"); - - return ( - - - setMobileOpen(false)} - aria-label={accessibleLabel} - aria-current={active ? "page" : undefined} - className={cn( - "flex size-9 shrink-0 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-sidebar-accent/65 hover:text-foreground md:size-8", - SIDEBAR_ROW_FOCUS_CLASSES, - active && "bg-sidebar-accent text-sidebar-accent-foreground", - )} - /> - } - > - - - {unreadCount > 0 && ( - - - {accessibleLabel} - - - ); -}; - const AppSidebar = ({ className }: { className?: string }) => { const t = useTranslate(); const currentUser = useCurrentUser(); @@ -734,12 +690,7 @@ const AppSidebar = ({ className }: { className?: string }) => {