fix malformed step interface
This commit is contained in:
@@ -32,7 +32,7 @@ interface PureCustomConfigProps extends FormStepContentProps {
|
|||||||
initialValues: any;
|
initialValues: any;
|
||||||
}
|
}
|
||||||
export function CustomConfig(props: FormStepContentProps) {
|
export function CustomConfig(props: FormStepContentProps) {
|
||||||
const { formHooks, handleNext } = props;
|
const { formHooks } = props;
|
||||||
const { data, isLoading, error } = useGetMachineSchema("mama");
|
const { data, isLoading, error } = useGetMachineSchema("mama");
|
||||||
const schema = useMemo(() => {
|
const schema = useMemo(() => {
|
||||||
if (!isLoading && !error?.message && data?.data) {
|
if (!isLoading && !error?.message && data?.data) {
|
||||||
@@ -66,7 +66,6 @@ export function CustomConfig(props: FormStepContentProps) {
|
|||||||
formHooks={formHooks}
|
formHooks={formHooks}
|
||||||
initialValues={initialValues}
|
initialValues={initialValues}
|
||||||
schema={schema}
|
schema={schema}
|
||||||
handleNext={handleNext}
|
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -101,7 +100,7 @@ function ErrorList<
|
|||||||
}
|
}
|
||||||
|
|
||||||
function PureCustomConfig(props: PureCustomConfigProps) {
|
function PureCustomConfig(props: PureCustomConfigProps) {
|
||||||
const { schema, initialValues, formHooks, handleNext } = props;
|
const { schema, initialValues, formHooks } = props;
|
||||||
const { setValue, watch } = formHooks;
|
const { setValue, watch } = formHooks;
|
||||||
|
|
||||||
console.log({ schema });
|
console.log({ schema });
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ export type FormStep = {
|
|||||||
|
|
||||||
export interface FormStepContentProps {
|
export interface FormStepContentProps {
|
||||||
formHooks: FormHooks;
|
formHooks: FormHooks;
|
||||||
handleNext: () => void;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type FormStepContent = ReactElement<FormStepContentProps>;
|
export type FormStepContent = ReactElement<FormStepContentProps>;
|
||||||
|
|||||||
Reference in New Issue
Block a user