From 58d7d0a61185187d1b46a8376a4a84825c1d9fe0 Mon Sep 17 00:00:00 2001 From: Birk Johansson Date: Tue, 12 Nov 2024 14:33:28 +0100 Subject: [PATCH] fix: cleanup error notice --- .../sectionedForm/SectionedFormErrorNotice.tsx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/components/sectionedForm/SectionedFormErrorNotice.tsx b/src/components/sectionedForm/SectionedFormErrorNotice.tsx index 5d5d7f75..b6ccc8b4 100644 --- a/src/components/sectionedForm/SectionedFormErrorNotice.tsx +++ b/src/components/sectionedForm/SectionedFormErrorNotice.tsx @@ -2,11 +2,11 @@ import i18n from '@dhis2/d2-i18n' import { IconCross16, NoticeBox } from '@dhis2/ui' import React, { useEffect, useState } from 'react' import { useSectionedFormContext } from '../../lib' -import { useFormStateErrors } from '../form' import { ErrorList, ServerSubmitErrorNotice, } from '../form/DefaultFormErrorNotice' +import { useFormStateErrors } from '../form/useFormStateErrors' import css from './SectionForm.module.css' export function SectionedFormErrorNotice() { @@ -47,13 +47,6 @@ export function SectionedFormErrors() {
- - - - - - -
)