From 3c1a235832236d679ccadcb0857b174316979b91 Mon Sep 17 00:00:00 2001 From: Primakov Alexandr Date: Sun, 14 Dec 2025 14:08:04 +0300 Subject: [PATCH] Fix color scheme logic in TaskPage component to ensure consistent button styling based on task accessibility. Simplified the color scheme condition for better readability and maintainability. --- src/pages/task/TaskPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/task/TaskPage.tsx b/src/pages/task/TaskPage.tsx index 4544b0f..beb74c5 100644 --- a/src/pages/task/TaskPage.tsx +++ b/src/pages/task/TaskPage.tsx @@ -169,7 +169,7 @@ export const TaskPage = () => { key={t.id} size="sm" variant={isCurrent ? 'solid' : isAccessible ? 'outline' : 'ghost'} - colorScheme={isCurrent ? 'teal' : isAccessible ? 'gray' : 'gray'} + colorScheme={isCurrent ? 'teal' : 'gray'} // @ts-expect-error Chakra UI v2 uses isDisabled isDisabled={!isAccessible} onClick={() => isAccessible && handleNavigateToTask(t.id)}