From a43ab6a605fc16ff8c58310533d39d6f517480d3 Mon Sep 17 00:00:00 2001 From: Yevhen Romanenko Date: Mon, 10 Apr 2023 13:24:47 +0000 Subject: [PATCH] FIX | update filter user,taxonomies selectors & date picker layouts --- src/modules/tasks/hooks/use-task-filter.hook.ts | 1 + .../smart-components/select-taxonomies-modal/index.tsx | 5 +++-- .../users/smart-components/select-user-modal/index.tsx | 5 +++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/modules/tasks/hooks/use-task-filter.hook.ts b/src/modules/tasks/hooks/use-task-filter.hook.ts index 9a14fb70..04479b66 100644 --- a/src/modules/tasks/hooks/use-task-filter.hook.ts +++ b/src/modules/tasks/hooks/use-task-filter.hook.ts @@ -97,6 +97,7 @@ export const useTaskFilter = ({ onSubmit, ...props }: IProps) => { defaultValue: values[key] ? values[key] : new Date(), onClose: selectedDate => onSelect(key, selectedDate || minValue), + mode: 'date', }) } diff --git a/src/modules/taxonomies/smart-components/select-taxonomies-modal/index.tsx b/src/modules/taxonomies/smart-components/select-taxonomies-modal/index.tsx index 2f6cf213..b54d302c 100644 --- a/src/modules/taxonomies/smart-components/select-taxonomies-modal/index.tsx +++ b/src/modules/taxonomies/smart-components/select-taxonomies-modal/index.tsx @@ -267,10 +267,11 @@ const createStyles = (theme: PartialTheme) => marginLeft: 10, fontSize: $size(16), textAlign: 'left', - opacity: 0.5, + opacity: 1, color: theme?.$textPrimary, }, itemTextActive: { - opacity: 1, + // opacity: 1, + fontWeight: '600', }, }) diff --git a/src/modules/users/smart-components/select-user-modal/index.tsx b/src/modules/users/smart-components/select-user-modal/index.tsx index 414b5c3e..4f527bb9 100644 --- a/src/modules/users/smart-components/select-user-modal/index.tsx +++ b/src/modules/users/smart-components/select-user-modal/index.tsx @@ -259,10 +259,11 @@ const createStyles = (theme: PartialTheme) => marginLeft: 10, fontSize: $size(16), textAlign: 'left', - opacity: 0.5, + opacity: 1, color: theme.$textPrimary, }, itemTextActive: { - opacity: 1, + // opacity: 1, + fontWeight: '600', }, })