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/Form.tsx | 25 -------------------------
 1 file changed, 25 deletions(-)
 delete mode 100644 src/components/Form/Form.tsx

(limited to 'src/components/Form/Form.tsx')

diff --git a/src/components/Form/Form.tsx b/src/components/Form/Form.tsx
deleted file mode 100644
index 44763c4..0000000
--- a/src/components/Form/Form.tsx
+++ /dev/null
@@ -1,25 +0,0 @@
-import { ReactNode } from 'react';
-import styles from './Form.module.scss';
-
-const Form = ({
-  children,
-  submitHandler,
-  modifier = '',
-  id,
-}: {
-  children: ReactNode;
-  submitHandler: any;
-  modifier?: string;
-  id?: string;
-}) => {
-  const withModifier = modifier ? styles[`wrapper--${modifier}`] : '';
-  const classes = `${styles.wrapper} ${withModifier}`;
-
-  return (
-    <form onSubmit={submitHandler} className={classes} id={id}>
-      {children}
-    </form>
-  );
-};
-
-export default Form;
-- 
cgit v1.2.3

