From e26d821f738525477472e631d170d9ed218c1603 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
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<string>) => void;
-  label?: ReactElement;
-}) => {
-  const updateValue = (e: ChangeEvent<HTMLTextAreaElement>) => {
-    setValue(e.target.value);
-  };
-
-  return (
-    <>
-      {label}
-      <textarea
-        id={id}
-        name={name}
-        value={value}
-        onChange={updateValue}
-        className={`${styles.field} ${styles.textarea}`}
-      />
-    </>
-  );
-};
-
-export default TextArea;
-- 
cgit v1.2.3

