From 1f50022c640ff784ad4452a1d2d49171d9c29298 Mon Sep 17 00:00:00 2001 From: Hazem Krimi Date: Wed, 21 Apr 2021 00:28:20 +0100 Subject: [PATCH] Update textarea component --- src/components/TextArea/index.tsx | 10 ++++++++-- src/components/TextArea/styles.ts | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/components/TextArea/index.tsx b/src/components/TextArea/index.tsx index 45ff034..e57d3b5 100644 --- a/src/components/TextArea/index.tsx +++ b/src/components/TextArea/index.tsx @@ -16,7 +16,7 @@ type TextAreaProps = { error?: boolean; errorMessage?: string; value: string; - label: string; + label?: string; placeholder?: string; fullWidth?: boolean; onChange: (event: React.ChangeEvent) => void; @@ -25,6 +25,7 @@ type TextAreaProps = { const TextArea = ({ color = 'client', label, + placeholder, value, onChange, error, @@ -46,7 +47,12 @@ const TextArea = ({ )}
-