diff --git a/pkgs/ui/src/components/createMachineForm/customConfig.tsx b/pkgs/ui/src/components/createMachineForm/customConfig.tsx index 7b9e76f23..fd005fbf3 100644 --- a/pkgs/ui/src/components/createMachineForm/customConfig.tsx +++ b/pkgs/ui/src/components/createMachineForm/customConfig.tsx @@ -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 }); diff --git a/pkgs/ui/src/components/createMachineForm/interfaces.ts b/pkgs/ui/src/components/createMachineForm/interfaces.ts index 93d730fcb..e83c9a9e5 100644 --- a/pkgs/ui/src/components/createMachineForm/interfaces.ts +++ b/pkgs/ui/src/components/createMachineForm/interfaces.ts @@ -18,7 +18,6 @@ export type FormStep = { export interface FormStepContentProps { formHooks: FormHooks; - handleNext: () => void; } export type FormStepContent = ReactElement;