From f7bd527ab0215695951bde64fc56339f66846a26 Mon Sep 17 00:00:00 2001 From: CREDO23 Date: Mon, 23 Dec 2024 18:02:41 +0200 Subject: [PATCH] fix dark colors | groupBy report limits select --- .../weekly-limit/components/group-by-select.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/apps/web/app/[locale]/reports/weekly-limit/components/group-by-select.tsx b/apps/web/app/[locale]/reports/weekly-limit/components/group-by-select.tsx index 032b830c9..5804fddd6 100644 --- a/apps/web/app/[locale]/reports/weekly-limit/components/group-by-select.tsx +++ b/apps/web/app/[locale]/reports/weekly-limit/components/group-by-select.tsx @@ -59,7 +59,7 @@ export function GroupBySelect({ defaultValues, onChange }: IProps) { return (
- +
{selected.map((option) => ( - + {options.map((option, index) => ( + className={({ active, selected }) => `relative cursor-default select-none py-2 pl-10 pr-4 ${ - active ? 'bg-primary/10 text-primary' : 'text-gray-900' - }` + active + ? 'bg-primary/10 text-primary dark:text-white dark:bg-primary/10' + : 'text-gray-900 dark:text-white' + } ${selected && 'dark:bg-primary/10'}` } value={option} >