From 5edf5ea55ea9905a3201b2547b15879884c46abd Mon Sep 17 00:00:00 2001 From: Hazem Krimi Date: Sun, 2 May 2021 03:58:28 +0100 Subject: [PATCH] Update select props --- src/components/Select/index.tsx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/components/Select/index.tsx b/src/components/Select/index.tsx index f069005..9fbd966 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; + select?: any; name: string; label?: string; fullWidth?: boolean; @@ -29,6 +30,7 @@ const Select = ({ label, name, value, + select = null, options, onChange, onBlur, @@ -52,9 +54,14 @@ const Select = ({
- + {options.map((option, index) => ( + ))}