diff --git a/frontend/src/features/Reportings/components/ReportingForm/FormComponents/Validity.tsx b/frontend/src/features/Reportings/components/ReportingForm/FormComponents/Validity.tsx index 9513c7a39..80288c69c 100644 --- a/frontend/src/features/Reportings/components/ReportingForm/FormComponents/Validity.tsx +++ b/frontend/src/features/Reportings/components/ReportingForm/FormComponents/Validity.tsx @@ -3,7 +3,7 @@ import { FormikDatePicker, FormikNumberInput, customDayjs, getLocalizedDayjs, us import { ReportingStatusEnum, type Reporting, getReportingStatus } from 'domain/entities/reporting' import { ReportingContext } from 'domain/shared_slices/Global' import { useFormikContext } from 'formik' -import { forwardRef, useMemo } from 'react' +import { useMemo } from 'react' import styled from 'styled-components' type ValidityProps = { @@ -11,7 +11,7 @@ type ValidityProps = { reportingContext: ReportingContext } -export const Validity = forwardRef(({ mustIncreaseValidity, reportingContext }, ref) => { +export function Validity({ mustIncreaseValidity, reportingContext }: ValidityProps) { const { newWindowContainerRef } = useNewWindow() const { values } = useFormikContext() @@ -35,7 +35,7 @@ export const Validity = forwardRef(({ mustIncreas ) return ( - +
(({ mustIncreas )} ) -}) +} const StyledFormikNumberInput = styled(FormikNumberInput)` max-width: 80px;