From aceca82e502f525aca108b855ceb2ac42413ea9c Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 3 Dec 2025 22:52:32 +0200 Subject: [PATCH] Feat add task (#644) * Add icon * fixup! Add icon --- frontend/components/Sidebar.tsx | 1 + frontend/components/Sidebar/SidebarNav.tsx | 39 ++++++++++++++++++---- 2 files changed, 33 insertions(+), 7 deletions(-) diff --git a/frontend/components/Sidebar.tsx b/frontend/components/Sidebar.tsx index c59fd16..aa33b11 100644 --- a/frontend/components/Sidebar.tsx +++ b/frontend/components/Sidebar.tsx @@ -74,6 +74,7 @@ const Sidebar: React.FC = ({ handleNavClick={handleNavClick} location={location} isDarkMode={isDarkMode} + openTaskModal={openTaskModal} /> void; location: Location; isDarkMode: boolean; + openTaskModal: (type?: 'simplified' | 'full') => void; } const SidebarNav: React.FC = ({ handleNavClick, location, + openTaskModal, }) => { const { t } = useTranslation(); const store = useStore(); @@ -101,13 +104,35 @@ const SidebarNav: React.FC = ({ {link.icon} {link.title} - {link.path === '/inbox' && inboxItemsCount > 0 && ( - - {inboxItemsCount > 99 - ? '99+' - : inboxItemsCount} - - )} +
+ {link.path === '/inbox' && + inboxItemsCount > 0 && ( + + {inboxItemsCount > 99 + ? '99+' + : inboxItemsCount} + + )} + {link.path === '/tasks?status=active' && ( + + )} +