Skip to content

Commit

Permalink
use useDate hook
Browse files Browse the repository at this point in the history
  • Loading branch information
aleckvincent committed Dec 10, 2024
1 parent d42e8ee commit 0c64866
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
import { FieldProps } from 'formik'
import { postprocessDateFromPicker, preprocessDateForPicker } from '@common/components/elements/dates/utils.ts'
import { useAbstractFormikSubForm } from './use-abstract-formik-sub-form.tsx'
import { MissionULAMGeneralInfoInitial } from '../types/mission-types.ts'
import { useDate } from './use-date.tsx'

export type MissionULAMGeneralInfoInitialInput = MissionULAMGeneralInfoInitial
export function useMissionGeneralInformationsForm(
name: string,
fieldFormik: FieldProps<MissionULAMGeneralInfoInitial>
) {

const { preprocessDateForPicker, postprocessDateFromPicker } = useDate()


const fromFieldValueToInput = (data: MissionULAMGeneralInfoInitial) => {
return {
Expand Down

0 comments on commit 0c64866

Please sign in to comment.