aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/Form/Form.tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-02-25 19:17:09 +0100
committerArmand Philippot <git@armandphilippot.com>2022-02-25 19:17:09 +0100
commite26d821f738525477472e631d170d9ed218c1603 (patch)
tree70ec0c29d003d462de6926f1faa09354e3ff6d90 /src/components/Form/Form.tsx
parentcb4764f8670f67627c407591c89b8d3637c190a7 (diff)
chore: combine input/textarea/select in a single component
Diffstat (limited to 'src/components/Form/Form.tsx')
-rw-r--r--src/components/Form/Form.tsx25
1 files changed, 0 insertions, 25 deletions
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;