From 5db8a063f880aa6493ae8ab27f530e2fea9fb8cf Mon Sep 17 00:00:00 2001 From: Claire Dagan Date: Thu, 28 Nov 2024 12:13:26 +0100 Subject: [PATCH] [Tech] delete useless ref --- .../components/ReportingForm/FormComponents/Validity.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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;