From d0e3704ed6a2c08eede388e353bcf76880873411 Mon Sep 17 00:00:00 2001 From: enes Date: Tue, 6 Aug 2024 14:07:41 +0200 Subject: [PATCH] fix: missing id/name on custom select input --- src/components/Select/index.tsx | 8 +++++++- src/pages/home/index.tsx | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/components/Select/index.tsx b/src/components/Select/index.tsx index 4667def..c5c39e8 100644 --- a/src/components/Select/index.tsx +++ b/src/components/Select/index.tsx @@ -62,11 +62,15 @@ interface SelectItemProps { interface SelectProps { setValue: React.Dispatch> options: SelectItemProps[] + name?: string + id?: string } export function Select({ setValue, - options + options, + name, + id }: SelectProps) { const handleChange = (event: SelectChangeEvent) => { setValue(event.target.value as T) @@ -75,6 +79,8 @@ export function Select({ return ( { {isFilterVisible && ( <> { return { ...s }