From 82669be2f250bc2b38c094c02bedd6b5e1c312d9 Mon Sep 17 00:00:00 2001 From: Hazem Krimi Date: Thu, 22 Apr 2021 00:00:20 +0100 Subject: [PATCH] Update select props --- src/components/Select/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/Select/index.tsx b/src/components/Select/index.tsx index d6d6ff2..5e70037 100644 --- a/src/components/Select/index.tsx +++ b/src/components/Select/index.tsx @@ -17,6 +17,7 @@ type SelectProps = { errorMessage?: string; options: Array<{ value: any; label: string }>; value: string; + name: string; label?: string; fullWidth?: boolean; onChange: (event: React.ChangeEvent) => void; @@ -25,6 +26,7 @@ type SelectProps = { const Select = ({ color = 'client', label, + name, value, options, onChange, @@ -47,7 +49,7 @@ const Select = ({ )}
- {options.map((option) => ( ))}