Scheduling infrastructure for absolutely everyone.
Update UI components to be able to use them in Console (#5514)
Jeroen Reumkens12d47ab94988
diff --git a/apps/web/pages/auth/setup.tsx b/apps/web/pages/auth/setup.tsxindex 522846291bf..c507f35c830 100644--- a/apps/web/pages/auth/setup.tsx+++ b/apps/web/pages/auth/setup.tsx@@ -90,7 +90,7 @@ const SetupFormStep1 = (props: { setIsLoading: (val: boolean) => void }) => {return (<FormProvider {...formMethods}>- <form id="setup-step-1" name="setup-step-1" className="space-y-4" onSubmit={onSubmit}>+ <form id="wizard-step-1" name="wizard-step-1" className="space-y-4" onSubmit={onSubmit}><div><Controllername="username"diff --git a/packages/ui/components/form/inputs/Input.tsx b/packages/ui/components/form/inputs/Input.tsxindex 674d090f20b..908704fb3f8 100644--- a/packages/ui/components/form/inputs/Input.tsx+++ b/packages/ui/components/form/inputs/Input.tsx@@ -296,25 +296,7 @@ const PlainForm = <T extends FieldValues>(props: FormProps<T>, ref: Ref<HTMLForm});}}{...passThrough}>- {- /* @see https://react-hook-form.com/advanced-usage/#SmartFormComponent */- React.Children.map(props.children, (child) => {- return typeof child !== "string" &&- typeof child !== "number" &&- typeof child !== "boolean" &&- child &&- "props" in child &&- child.props.name- ? React.createElement(child.type, {- ...{- ...child.props,- register: form.register,- key: child.props.name,- },- })- : child;- })- }+ {props.children}</form></FormProvider>);diff --git a/packages/ui/v2/core/WizardForm.tsx b/packages/ui/v2/core/WizardForm.tsxindex 1da07e5fac3..5b2f56d2721 100644--- a/packages/ui/v2/core/WizardForm.tsx+++ b/packages/ui/v2/core/WizardForm.tsx@@ -52,8 +52,8 @@ function WizardForm<T extends DefaultStep>(props: { href: string; steps: T[]; coloading={currentStep.isLoading}type="submit"color="primary"- form={`setup-step-${step}`}- className="relative">+ form={`wizard-step-${step}`}+ className="relative ml-3">{step < steps.length ? "Next" : "Finish"}</Button></div>