diff --git a/src/form/arrayStep.tsx b/src/form/arrayStep.tsx index eb1f76c..6c85aa8 100644 --- a/src/form/arrayStep.tsx +++ b/src/form/arrayStep.tsx @@ -9,13 +9,14 @@ import { option } from '../Option'; import { type } from '../type'; import { defaultVal, getDefaultValues } from './formUtils'; -export const ArrayStep = ({ entry, step, component, disabled, addLabel }: - { - entry: string, - step: SchemaEntry, - component: ({ key, defaultValue, value }: { key: string, defaultValue: any, value?: any }, ids: number) => JSX.Element, +export const ArrayStep = ({ entry, step, component, disabled, addLabel }: + { + entry: string, + step: SchemaEntry, + component: ({ key, defaultValue, value }: { key: string, defaultValue: any, value?: any }, ids: number) => JSX.Element, disabled: boolean, - addLabel?: string }) => { + addLabel?: string + }) => { const { getValues, setValue, control, trigger, formState } = useFormContext(); const values = getValues(entry); @@ -39,8 +40,12 @@ export const ArrayStep = ({ entry, step, component, disabled, addLabel }: + )