From e26d821f738525477472e631d170d9ed218c1603 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Fri, 25 Feb 2022 19:17:09 +0100 Subject: chore: combine input/textarea/select in a single component --- src/components/Form/TextArea/TextArea.tsx | 35 ------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 src/components/Form/TextArea/TextArea.tsx (limited to 'src/components/Form/TextArea/TextArea.tsx') diff --git a/src/components/Form/TextArea/TextArea.tsx b/src/components/Form/TextArea/TextArea.tsx deleted file mode 100644 index b8894ab..0000000 --- a/src/components/Form/TextArea/TextArea.tsx +++ /dev/null @@ -1,35 +0,0 @@ -import { ChangeEvent, ReactElement, SetStateAction } from 'react'; -import styles from '../Form.module.scss'; - -const TextArea = ({ - id, - name, - value, - setValue, - label, -}: { - id: string; - name: string; - value: string; - setValue: (value: SetStateAction) => void; - label?: ReactElement; -}) => { - const updateValue = (e: ChangeEvent) => { - setValue(e.target.value); - }; - - return ( - <> - {label} -