From 3a89a1c07fe68b2abf658a457dd7979d33f21c4d Mon Sep 17 00:00:00 2001 From: marshennikovaolga Date: Wed, 2 Oct 2024 18:22:13 +0300 Subject: [PATCH] tasks sidebar ui --- web/components/custom/sidebar/partial/task-section.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/web/components/custom/sidebar/partial/task-section.tsx b/web/components/custom/sidebar/partial/task-section.tsx index 3746c826..015a5dc6 100644 --- a/web/components/custom/sidebar/partial/task-section.tsx +++ b/web/components/custom/sidebar/partial/task-section.tsx @@ -61,12 +61,14 @@ export const TaskSection: React.FC<{ pathname: string }> = ({ pathname }) => { = ({ title, href, count, isActive }) => ( +const TaskSectionHeader: React.FC = ({ title, href, count, isActive, iconName }) => (
= ({ title, href, coun href={href} className="flex flex-1 items-center justify-start rounded-md px-2 py-1 focus-visible:outline-none focus-visible:ring-0" > -

+ {iconName && } + +

{title} {count > 0 && {count}}