idp button

This commit is contained in:
peintnermax
2024-09-12 08:26:12 +02:00
parent 623fc086bd
commit 98f221b981

View File

@@ -14,6 +14,7 @@ import { SignInWithAzureAD } from "./idps/SignInWithAzureAD";
import { SignInWithGeneric } from "./idps/SignInWithGeneric"; import { SignInWithGeneric } from "./idps/SignInWithGeneric";
import { SignInWithGithub } from "./idps/SignInWithGithub"; import { SignInWithGithub } from "./idps/SignInWithGithub";
import { SignInWithGitlab } from "./idps/SignInWithGitlab"; import { SignInWithGitlab } from "./idps/SignInWithGitlab";
import { SignInWithGoogle } from "./idps/SignInWithGoogle";
export interface SignInWithIDPProps { export interface SignInWithIDPProps {
children?: ReactNode; children?: ReactNode;
@@ -139,14 +140,14 @@ export function SignInWithIDP({
); );
case IdentityProviderType.GOOGLE: case IdentityProviderType.GOOGLE:
return ( return (
<SignInWithApple <SignInWithGoogle
key={`idp-${i}`} key={`idp-${i}`}
e2e="google" e2e="google"
name={idp.name} name={idp.name}
onClick={() => onClick={() =>
navigateToAuthUrl(idp.id, IdentityProviderType.GOOGLE) navigateToAuthUrl(idp.id, IdentityProviderType.GOOGLE)
} }
></SignInWithApple> ></SignInWithGoogle>
); );
case IdentityProviderType.GITLAB: case IdentityProviderType.GITLAB:
return ( return (