Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
flaminic committed Jan 20, 2025
1 parent 92c1b43 commit 1544d23
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/pages/dataSetsWip/form/DataSetFormContents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ import {
} from '../../../lib'
import { AdvancedFormContents } from './AdvancedFormContents'
import { DataFormContents } from './DataFormContents'
import { DataSetFormValues } from './dataSetFormSchema'
import { DataSetFormDescriptor } from './formDescriptor'
import { FormFormContents } from './FormFormContents'
import { OrganisationUnitsFormContents } from './OrganisationUnitsFormContents'
import { PeriodsContents } from './PeriodsFormContents'
import { SetupFormContents } from './SetupFormContents'
import { ValidationFormContents } from './ValidationFormContents'
import { DataSetFormValues } from './dataSetFormSchema'

export const DataSetFormContents = ({
formValues,
Expand Down
11 changes: 6 additions & 5 deletions src/pages/dataSetsWip/form/HiddenInputField.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import React, { useState } from 'react'
import { Checkbox, InputFieldFF } from '@dhis2/ui'
import { FieldMetaState, FieldRenderProps, useField } from 'react-final-form'
import i18n from '@dhis2/d2-i18n'
import classes from './HiddenInputField.module.css'
import { InputFieldRestProps } from '@dhis2/ui-forms/types/InputFieldFF/InputFieldFF'
import type { InputFieldProps } from '@dhis2-ui/input'
import { Checkbox, InputFieldFF } from '@dhis2/ui'

Check failure on line 3 in src/pages/dataSetsWip/form/HiddenInputField.tsx

View workflow job for this annotation

GitHub Actions / lint

`@dhis2/ui` import should occur before type import of `@dhis2-ui/input`
import React, { useState } from 'react'
import { FieldMetaState, useField } from 'react-final-form'
import classes from './HiddenInputField.module.css'

type InputFieldRestProps = Omit<InputFieldProps, 'onChange' | 'value' | 'name'>

export type HiddenInputFieldProps = InputFieldRestProps & {
fieldName: string
Expand Down
4 changes: 2 additions & 2 deletions src/pages/dataSetsWip/form/PeriodsFormContents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import {
StandardFormSectionTitle,
} from '../../../components'
import { SectionedFormSection } from '../../../components/sectionedForm'
import { PeriodTypeField } from './PeriodTypeField'
import { HiddenInputField } from './HiddenInputField'
import { DEFAULT_CATEGORY_COMBO } from '../../../lib'
import { DataSetFormValues } from './dataSetFormSchema'
import { HiddenInputField } from './HiddenInputField'
import { PeriodTypeField } from './PeriodTypeField'

export const PeriodsContents = ({
name,
Expand Down
2 changes: 1 addition & 1 deletion src/pages/dataSetsWip/form/dataSetFormSchema.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import i18n from '@dhis2/d2-i18n'
import { z } from 'zod'
import {
DEFAULT_CATEGORY_COMBO,
getDefaults,
modelFormSchemas,
} from '../../../lib'
import { createFormValidate } from '../../../lib/form/validate'
import i18n from '@dhis2/d2-i18n'

const { withAttributeValues, identifiable, style, referenceCollection } =
modelFormSchemas
Expand Down

0 comments on commit 1544d23

Please sign in to comment.