From c2a7c9b67b4d24e77fef3b961dab289cde10a9cb Mon Sep 17 00:00:00 2001 From: marcelines Date: Tue, 27 Jun 2023 11:09:27 +0100 Subject: [PATCH] fix: changes from review --- ...ith-checkboxes.tsx => dropdown-filter.tsx} | 14 ++--- .../filters/{sort.tsx => dropdown-sort.tsx} | 12 ++-- .../components/table-issues/filters/index.ts | 4 +- .../components/table-issues/table-issues.tsx | 63 ++++++++++++------- packages/components/src/input/input.tsx | 24 +++---- 5 files changed, 69 insertions(+), 48 deletions(-) rename apps/website/src/components/table-issues/filters/{filter-with-checkboxes.tsx => dropdown-filter.tsx} (92%) rename apps/website/src/components/table-issues/filters/{sort.tsx => dropdown-sort.tsx} (90%) diff --git a/apps/website/src/components/table-issues/filters/filter-with-checkboxes.tsx b/apps/website/src/components/table-issues/filters/dropdown-filter.tsx similarity index 92% rename from apps/website/src/components/table-issues/filters/filter-with-checkboxes.tsx rename to apps/website/src/components/table-issues/filters/dropdown-filter.tsx index 9f3dad3b..2a619d96 100644 --- a/apps/website/src/components/table-issues/filters/filter-with-checkboxes.tsx +++ b/apps/website/src/components/table-issues/filters/dropdown-filter.tsx @@ -20,7 +20,7 @@ type Data = { type Props = { data: Data[] label: string - noPadding?: boolean + placeholder?: string } const isAvatar = (value: unknown): value is string => { @@ -43,8 +43,8 @@ const RenderIcon = (props: Data) => { return cloneElement(props.avatar) || <> } -const FilterWithCheckboxes = (props: Props) => { - const { data, label, noPadding } = props +const DropdownFilter = (props: Props) => { + const { data, label, placeholder } = props const [filterText, setFilterText] = useState('') @@ -59,7 +59,7 @@ const FilterWithCheckboxes = (props: Props) => { const currentBreakpoint = useCurrentBreakpoint() return ( -
+
setIsOpen(!isOpen)}>