Skip to content

Commit

Permalink
fix: cleanup error notice
Browse files Browse the repository at this point in the history
  • Loading branch information
Birkbjo committed Nov 12, 2024
1 parent d045ae7 commit 58d7d0a
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/components/sectionedForm/SectionedFormErrorNotice.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -47,13 +47,6 @@ export function SectionedFormErrors() {
</div>
<div className={css.errorNoticeBoxContent}>
<ErrorList errors={errorsWithlabels} />
<ErrorList errors={errorsWithlabels} />
<ErrorList errors={errorsWithlabels} />
<ErrorList errors={errorsWithlabels} />
<ErrorList errors={errorsWithlabels} />
<ErrorList errors={errorsWithlabels} />
<ErrorList errors={errorsWithlabels} />
<ErrorList errors={errorsWithlabels} />
</div>
</NoticeBox>
)
Expand Down

0 comments on commit 58d7d0a

Please sign in to comment.