|
|
|
@ -4,7 +4,6 @@ import { Form } from 'reactstrap';
|
|
|
|
|
interface Props { |
|
|
|
|
children: ReactNode; |
|
|
|
|
onSubmit?: FormEventHandler<HTMLFormElement>; |
|
|
|
|
key?: string; |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* |
|
|
|
@ -12,10 +11,6 @@ interface Props {
|
|
|
|
|
* @param className?:string |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
export default function CustomForm({ children, onSubmit, key }: Props) { |
|
|
|
|
return ( |
|
|
|
|
<Form onSubmit={onSubmit} key={key}> |
|
|
|
|
{children} |
|
|
|
|
</Form> |
|
|
|
|
); |
|
|
|
|
export default function CustomForm({ children, onSubmit }: Props) { |
|
|
|
|
return <Form onSubmit={onSubmit}>{children}</Form>; |
|
|
|
|
} |
|
|
|
|