From 4368536141a9bdc576b871607fc14d338dae773f Mon Sep 17 00:00:00 2001 From: Leo Giovanetti Date: Fri, 16 Dec 2022 14:41:07 -0300 Subject: [PATCH] Fixing Admin Wizard step 1 blocking step 2 (#6063) --- apps/web/pages/auth/setup/index.tsx | 2 +- apps/web/pages/auth/setup/steps/StepDone.tsx | 26 ++++++++++++++------ 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/apps/web/pages/auth/setup/index.tsx b/apps/web/pages/auth/setup/index.tsx index c9513543d3..9635a33ff3 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) { return ( <>
- +
); diff --git a/apps/web/pages/auth/setup/steps/StepDone.tsx b/apps/web/pages/auth/setup/steps/StepDone.tsx index 706d1dfc89..933ce7edd5 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 ( -
-
- +
{ + e.preventDefault(); + router.replace(`/auth/setup?step=2&category=calendar`); + }}> +
+
+ +
+
+

{t("all_done")}

+
-
-

{t("all_done")}

-
-
+ ); };