message: Update src/components/common/form/GenericForm.tsx
diff: -import React from 'react'
  +import { FormikConfig } from 'formik'
  +import React, { PropsWithChildren } from 'react'
  +
  import useForm from 'common/form/useForm'
  import { FormContextProvider } from 'components/common/form/FormContext'
  -export type GenericFormProps = {
  - onSubmit: any
  - initialValues?: any
  - validationSchema: any
  - children: any
  -}
  +export type GenericFormProps<T> = PropsWithChildren<FormikConfig<T>>
  -const GenericForm = (props: GenericFormProps) => {
  - const { initialValues, onSubmit, validationSchema, children } = props
  - const { formik } = useForm({ initialValues, onSubmit, validationSchema })
  +export default function GenericForm<T>({ children, ...formProps }: GenericFormProps<T>) {
  + const { formik } = useForm(formProps)
  return (
  <form onSubmit={formik.handleSubmit}>
  @@ -19,5 +15,3 @@ const GenericForm = (props: GenericFormProps) => {
  </form>
  )
  }
  -
  -export default GenericForm
  