From 480ae89797cee99c85a8426d5807b25fbbea1547 Mon Sep 17 00:00:00 2001 From: Birk Johansson Date: Thu, 16 Jan 2025 16:47:41 +0100 Subject: [PATCH] fix: remove unused sync hook --- src/pages/dataSetsWip/form/OrganisationUnitsFormContents.tsx | 2 -- src/pages/dataSetsWip/form/SetupFormContents.tsx | 2 -- src/pages/dataSetsWip/form/ValidationFormContents.tsx | 2 -- 3 files changed, 6 deletions(-) diff --git a/src/pages/dataSetsWip/form/OrganisationUnitsFormContents.tsx b/src/pages/dataSetsWip/form/OrganisationUnitsFormContents.tsx index e4c549ee..93bd44fe 100644 --- a/src/pages/dataSetsWip/form/OrganisationUnitsFormContents.tsx +++ b/src/pages/dataSetsWip/form/OrganisationUnitsFormContents.tsx @@ -1,8 +1,6 @@ import i18n from '@dhis2/d2-i18n' import React from 'react' import { - ModelTransferField, - StandardFormField, StandardFormSectionDescription, StandardFormSectionTitle, } from '../../../components' diff --git a/src/pages/dataSetsWip/form/SetupFormContents.tsx b/src/pages/dataSetsWip/form/SetupFormContents.tsx index 05bcfdce..77bc37e3 100644 --- a/src/pages/dataSetsWip/form/SetupFormContents.tsx +++ b/src/pages/dataSetsWip/form/SetupFormContents.tsx @@ -7,11 +7,9 @@ import { StandardFormSectionTitle, } from '../../../components' import { SectionedFormSection } from '../../../components/sectionedForm' -import { useSyncSelectedSectionWithScroll } from '../../../lib' import { ColorAndIconField } from '../../dataElements/fields' export const SetupFormContents = ({ name }: { name: string }) => { - useSyncSelectedSectionWithScroll() return ( diff --git a/src/pages/dataSetsWip/form/ValidationFormContents.tsx b/src/pages/dataSetsWip/form/ValidationFormContents.tsx index 563549d3..49145177 100644 --- a/src/pages/dataSetsWip/form/ValidationFormContents.tsx +++ b/src/pages/dataSetsWip/form/ValidationFormContents.tsx @@ -7,10 +7,8 @@ import { StandardFormSectionTitle, } from '../../../components' import { SectionedFormSection } from '../../../components/sectionedForm' -import { useSyncSelectedSectionWithScroll } from '../../../lib' export const ValidationFormContents = ({ name }: { name: string }) => { - useSyncSelectedSectionWithScroll() return (