Scheduling infrastructure for absolutely everyone.
Fixing Admin Wizard step 1 blocking step 2 (#6063)
Leo Giovanetti4368536141a9
diff --git a/apps/web/pages/auth/setup/index.tsx b/apps/web/pages/auth/setup/index.tsxindex c9513543d39..9635a33ff3f 100644--- a/apps/web/pages/auth/setup/index.tsx+++ b/apps/web/pages/auth/setup/index.tsx@@ -32,7 +32,7 @@ export default function Setup(props: inferSSRProps<typeof getServerSideProps>) {return (<><main className="flex items-center bg-gray-100 print:h-full">- <WizardForm href="/auth/setup" steps={steps} disableNavigation={shouldDisable} />+ <WizardForm href="/auth/setup" steps={steps} /></main></>);diff --git a/apps/web/pages/auth/setup/steps/StepDone.tsx b/apps/web/pages/auth/setup/steps/StepDone.tsxindex 706d1dfc890..933ce7edd55 100644--- a/apps/web/pages/auth/setup/steps/StepDone.tsx+++ b/apps/web/pages/auth/setup/steps/StepDone.tsx@@ -1,18 +1,30 @@+import { useRouter } from "next/router";+import { useLocale } from "@calcom/lib/hooks/useLocale";import { Icon } from "@calcom/ui";const StepDone = () => {+ const router = useRouter();const { t } = useLocale();return (- <div className="min-h-36 my-6 flex flex-col items-center justify-center">- <div className="flex h-[72px] w-[72px] items-center justify-center rounded-full bg-gray-600 dark:bg-white">- <Icon.FiCheck className="inline-block h-10 w-10 text-white dark:bg-white dark:text-gray-600" />- </div>- <div className="max-w-[420px] text-center">- <h2 className="mt-6 mb-1 text-lg font-medium dark:text-gray-300">{t("all_done")}</h2>+ <form+ id="wizard-step-1"+ name="wizard-step-1"+ className="space-y-4"+ onSubmit={(e) => {+ e.preventDefault();+ router.replace(`/auth/setup?step=2&category=calendar`);+ }}>+ <div className="min-h-36 my-6 flex flex-col items-center justify-center">+ <div className="flex h-[72px] w-[72px] items-center justify-center rounded-full bg-gray-600 dark:bg-white">+ <Icon.FiCheck className="inline-block h-10 w-10 text-white dark:bg-white dark:text-gray-600" />+ </div>+ <div className="max-w-[420px] text-center">+ <h2 className="mt-6 mb-1 text-lg font-medium dark:text-gray-300">{t("all_done")}</h2>+ </div></div>- </div>+ </form>);};