Skip to content

Commit

Permalink
[Tech] fix after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
claire2212 committed Feb 21, 2024
1 parent 817b020 commit c6f4f53
Showing 1 changed file with 5 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ import type { EnvActionControl } from '../../../../../../domain/entities/mission

export function InfractionFormHeaderVehicle({ envActionIndex, infractionPath }) {
const [vehicleTypeField] = useField<EnvActionControl['vehicleType']>(`envActions.${envActionIndex}.vehicleType`)
const [vesselTypeField, , vesselTypeHelpers] = useField<Infraction['vesselType']>(`${infractionPath}.vesselType`)

const handleChangeVesselType = v => {
vesselTypeHelpers.setValue(v)
}

return (
<FormGroup>
Expand All @@ -27,13 +22,11 @@ export function InfractionFormHeaderVehicle({ envActionIndex, infractionPath })
<>
<VesselTypeSelector infractionPath={infractionPath} />

<FormColumn>
<FormikNumberInput
data-cy="infraction-form-vessel-size"
label="Taille du navire"
name={`${infractionPath}.vesselSize`}
/>
</FormColumn>
<FormikNumberInput
data-cy="infraction-form-vessel-size"
label="Taille du navire"
name={`${infractionPath}.vesselSize`}
/>
</>
)}
</FormGroup>
Expand Down

0 comments on commit c6f4f53

Please sign in to comment.