Skip to content

Commit

Permalink
set MissionGeneralInformationUlamFormNew props to nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
aleckvincent committed Dec 10, 2024
1 parent 4036f12 commit d42e8ee
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ describe('MissionGeneralInformationUlamFormNew', () => {
it('renders the form with initial values', () => {
render(
<MissionGeneralInformationUlamFormNew
startDateTimeUtc="2024-01-01T00:00:00Z"
endDateTimeUtc="2024-01-01T00:00:00Z"
missionTypes={[MissionTypeEnum.AIR]}
onClose={vi.fn()}
/>
)
Expand All @@ -24,9 +21,6 @@ describe('MissionGeneralInformationUlamFormNew', () => {

render(
<MissionGeneralInformationUlamFormNew
startDateTimeUtc="2024-01-01T00:00:00Z"
endDateTimeUtc="2024-01-01T00:00:00Z"
missionTypes={[MissionTypeEnum.AIR]}
onClose={vi.fn()}
/>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ const MissionCreateDialog: FC<MissionCreateDialogProps> = ({isOpen, onClose}) =>
<Dialog.Body style={{ backgroundColor: THEME.color.gainsboro }}>
<Stack direction="column" spacing="1.5rem" >
<MissionGeneralInformationUlamFormNew
startDateTimeUtc="2024-01-01T00:00:00Z"
endDateTimeUtc="2024-01-01T00:00:00Z"
missionTypes={[MissionTypeEnum.AIR]}
onClose={handleClose}
/>
</Stack>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,15 @@ import { Field, FieldProps, Formik } from 'formik'
import MissionGeneralInformationInitialForm from './mission-general-information-initial-form.tsx'
import { FormikEffect } from '@mtes-mct/monitor-ui'
import {
MissionReinforcementTypeEnum,
MissionReportTypeEnum,
MissionULAMGeneralInfoInitial
MissionReinforcementTypeEnum, MissionReportTypeEnum, MissionULAMGeneralInfoInitial
} from '../../../common/types/mission-types.ts'

type NewMissionUlamGeneralInfoInitial = { missionGeneralInfo: MissionULAMGeneralInfoInitial }

export interface MissionGeneralInformationUlamProps {
startDateTimeUtc: string
endDateTimeUtc: string
missionTypes: MissionTypeEnum[]
startDateTimeUtc?: string
endDateTimeUtc?: string
missionTypes?: MissionTypeEnum[]
missionReportType?: MissionReportTypeEnum
reinforcementType?: MissionReinforcementTypeEnum
nbHourAtSea?: number
Expand Down

0 comments on commit d42e8ee

Please sign in to comment.