feat: make oidc sign in button text configurable (#1209)

Adds a configurable label for the OIDC connection's button.
This commit is contained in:
Rene Steen
2024-07-31 14:22:52 +02:00
committed by GitHub
parent 7ed0a909eb
commit 5582f29bda
6 changed files with 14 additions and 2 deletions

View File

@ -71,6 +71,7 @@ export type SignInFormProps = {
initialEmail?: string;
isGoogleSSOEnabled?: boolean;
isOIDCSSOEnabled?: boolean;
oidcProviderLabel?: string;
};
export const SignInForm = ({
@ -78,6 +79,7 @@ export const SignInForm = ({
initialEmail,
isGoogleSSOEnabled,
isOIDCSSOEnabled,
oidcProviderLabel,
}: SignInFormProps) => {
const { toast } = useToast();
const { getFlag } = useFeatureFlags();
@ -369,7 +371,7 @@ export const SignInForm = ({
onClick={onSignInWithOIDCClick}
>
<FaIdCardClip className="mr-2 h-5 w-5" />
OIDC
{oidcProviderLabel || 'OIDC'}
</Button>
)}