fix malformed step interface
All checks were successful
checks-impure / test (pull_request) Successful in 11s
checks / test (pull_request) Successful in 1m0s

This commit is contained in:
Johannes Kirschbauer 2023-09-03 14:23:31 +02:00
parent 598dd776ec
commit 5cb136d32c
2 changed files with 2 additions and 4 deletions

View File

@ -32,7 +32,7 @@ interface PureCustomConfigProps extends FormStepContentProps {
initialValues: any;
}
export function CustomConfig(props: FormStepContentProps) {
const { formHooks, handleNext } = props;
const { formHooks } = props;
const { data, isLoading, error } = useGetMachineSchema("mama");
const schema = useMemo(() => {
if (!isLoading && !error?.message && data?.data) {
@ -66,7 +66,6 @@ export function CustomConfig(props: FormStepContentProps) {
formHooks={formHooks}
initialValues={initialValues}
schema={schema}
handleNext={handleNext}
/>
);
}
@ -101,7 +100,7 @@ function ErrorList<
}
function PureCustomConfig(props: PureCustomConfigProps) {
const { schema, initialValues, formHooks, handleNext } = props;
const { schema, initialValues, formHooks } = props;
const { setValue, watch } = formHooks;
console.log({ schema });

View File

@ -18,7 +18,6 @@ export type FormStep = {
export interface FormStepContentProps {
formHooks: FormHooks;
handleNext: () => void;
}
export type FormStepContent = ReactElement<FormStepContentProps>;