diff --git a/apps/login/src/components/sign-in-with-idp.tsx b/apps/login/src/components/sign-in-with-idp.tsx index 13b179071c..ec9cfb36f8 100644 --- a/apps/login/src/components/sign-in-with-idp.tsx +++ b/apps/login/src/components/sign-in-with-idp.tsx @@ -6,7 +6,6 @@ import { IdentityProvider, IdentityProviderType, } from "@zitadel/proto/zitadel/settings/v2/login_settings_pb"; -import { useTranslations } from "next-intl"; import { ReactNode, useActionState } from "react"; import { Alert } from "./alert"; import { SignInWithIdentityProviderProps } from "./idps/base-button"; @@ -16,6 +15,7 @@ import { SignInWithGeneric } from "./idps/sign-in-with-generic"; import { SignInWithGithub } from "./idps/sign-in-with-github"; import { SignInWithGitlab } from "./idps/sign-in-with-gitlab"; import { SignInWithGoogle } from "./idps/sign-in-with-google"; +import { Translated } from "./translated"; export interface SignInWithIDPProps { children?: ReactNode; @@ -32,7 +32,6 @@ export function SignInWithIdp({ linkOnly, }: Readonly) { const [state, action, _isPending] = useActionState(redirectToIdp, {}); - const t = useTranslations("idp"); const renderIDPButton = (idp: IdentityProvider, index: number) => { const { id, name, type } = idp; @@ -78,7 +77,9 @@ export function SignInWithIdp({ return (
-

{t("orSignInWith")}

+

+ +

{!!identityProviders.length && identityProviders?.map(renderIDPButton)} {state?.error && (