From 7a289a614323ae4849c46eb885e731635ba98cab Mon Sep 17 00:00:00 2001 From: Hazem Krimi Date: Wed, 21 Apr 2021 00:28:09 +0100 Subject: [PATCH] Update select component --- src/components/Select/index.tsx | 2 +- src/components/Select/styles.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Select/index.tsx b/src/components/Select/index.tsx index 4792a0e..d6d6ff2 100644 --- a/src/components/Select/index.tsx +++ b/src/components/Select/index.tsx @@ -17,7 +17,7 @@ type SelectProps = { errorMessage?: string; options: Array<{ value: any; label: string }>; value: string; - label: string; + label?: string; fullWidth?: boolean; onChange: (event: React.ChangeEvent) => void; }; diff --git a/src/components/Select/styles.ts b/src/components/Select/styles.ts index fe1a70d..0c16669 100644 --- a/src/components/Select/styles.ts +++ b/src/components/Select/styles.ts @@ -15,7 +15,7 @@ type WrapperProps = { error?: boolean; errorMessage?: string; type?: 'text' | 'email' | 'password' | 'file' | 'number'; - label: string; + label?: string; fullWidth?: boolean; };