From bf88446d90b11e29974fd3f28628ae2b360c515d Mon Sep 17 00:00:00 2001 From: peintnermax Date: Mon, 15 Jul 2024 16:00:17 +0200 Subject: [PATCH] backbuttons --- apps/login/src/app/(login)/mfa/page.tsx | 6 ++++++ apps/login/src/app/(login)/mfa/set/page.tsx | 6 ++++++ apps/login/src/app/(login)/otp/[method]/set/page.tsx | 2 ++ apps/login/src/ui/LoginOTP.tsx | 2 ++ apps/login/src/ui/LoginPasskey.tsx | 9 ++------- apps/login/src/ui/RegisterFormWithoutPassword.tsx | 9 ++------- apps/login/src/ui/RegisterPasskey.tsx | 9 ++------- apps/login/src/ui/RegisterU2F.tsx | 9 ++------- apps/login/src/ui/SignInWithIDP.tsx | 5 +++++ 9 files changed, 29 insertions(+), 28 deletions(-) diff --git a/apps/login/src/app/(login)/mfa/page.tsx b/apps/login/src/app/(login)/mfa/page.tsx index 1d13c02f8fa..ef8aeddba47 100644 --- a/apps/login/src/app/(login)/mfa/page.tsx +++ b/apps/login/src/app/(login)/mfa/page.tsx @@ -5,6 +5,7 @@ import { server, } from "@/lib/zitadel"; import Alert from "@/ui/Alert"; +import BackButton from "@/ui/BackButton"; import ChooseSecondFactor from "@/ui/ChooseSecondFactor"; import DynamicTheme from "@/ui/DynamicTheme"; import UserAvatar from "@/ui/UserAvatar"; @@ -96,6 +97,11 @@ export default async function Page({ ) : ( No second factors available to setup. )} + +
+ + +
); diff --git a/apps/login/src/app/(login)/mfa/set/page.tsx b/apps/login/src/app/(login)/mfa/set/page.tsx index 9d855b105b8..0e38e966d2c 100644 --- a/apps/login/src/app/(login)/mfa/set/page.tsx +++ b/apps/login/src/app/(login)/mfa/set/page.tsx @@ -7,6 +7,7 @@ import { server, } from "@/lib/zitadel"; import Alert from "@/ui/Alert"; +import BackButton from "@/ui/BackButton"; import ChooseSecondFactorToSetup from "@/ui/ChooseSecondFactorToSetup"; import DynamicTheme from "@/ui/DynamicTheme"; import UserAvatar from "@/ui/UserAvatar"; @@ -110,6 +111,11 @@ export default async function Page({ ) : ( No second factors available to setup. )} + +
+ + +
); diff --git a/apps/login/src/app/(login)/otp/[method]/set/page.tsx b/apps/login/src/app/(login)/otp/[method]/set/page.tsx index f1785fd683d..ff31cd88515 100644 --- a/apps/login/src/app/(login)/otp/[method]/set/page.tsx +++ b/apps/login/src/app/(login)/otp/[method]/set/page.tsx @@ -7,6 +7,7 @@ import { server, } from "@/lib/zitadel"; import Alert from "@/ui/Alert"; +import BackButton from "@/ui/BackButton"; import { Button, ButtonVariants } from "@/ui/Button"; import DynamicTheme from "@/ui/DynamicTheme"; import { Spinner } from "@/ui/Spinner"; @@ -154,6 +155,7 @@ export default async function Page({

+ + + )} diff --git a/apps/login/src/ui/RegisterFormWithoutPassword.tsx b/apps/login/src/ui/RegisterFormWithoutPassword.tsx index fc95aac02ae..022be43b749 100644 --- a/apps/login/src/ui/RegisterFormWithoutPassword.tsx +++ b/apps/login/src/ui/RegisterFormWithoutPassword.tsx @@ -12,6 +12,7 @@ import AuthenticationMethodRadio, { methods, } from "./AuthenticationMethodRadio"; import Alert from "./Alert"; +import BackButton from "./BackButton"; type Inputs = | { @@ -166,13 +167,7 @@ export default function RegisterFormWithoutPassword({ )}
- + + )} diff --git a/apps/login/src/ui/RegisterU2F.tsx b/apps/login/src/ui/RegisterU2F.tsx index 71ccad812ab..db471797263 100644 --- a/apps/login/src/ui/RegisterU2F.tsx +++ b/apps/login/src/ui/RegisterU2F.tsx @@ -8,6 +8,7 @@ import { Spinner } from "./Spinner"; import Alert from "./Alert"; import { RegisterU2FResponse } from "@zitadel/server"; import { coerceToArrayBuffer, coerceToBase64Url } from "@/utils/base64"; +import BackButton from "./BackButton"; type Inputs = {}; type Props = { @@ -191,13 +192,7 @@ export default function RegisterU2F({ )}
- +
)} +
+ + +
); }