mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-24 08:20:31 +08:00
ci: Show provider.displayName in signin button
This commit is contained in:
parent
fe4a4328aa
commit
9156bd426b
@ -46,7 +46,7 @@ import {getEvent} from "./Util";
|
|||||||
import {Modal} from "antd";
|
import {Modal} from "antd";
|
||||||
|
|
||||||
function getSigninButton(provider) {
|
function getSigninButton(provider) {
|
||||||
const text = i18next.t("login:Sign in with {type}").replace("{type}", provider.type);
|
const text = i18next.t("login:Sign in with {type}").replace("{type}", provider.displayName !== "" ? provider.displayName : provider.type);
|
||||||
if (provider.type === "GitHub") {
|
if (provider.type === "GitHub") {
|
||||||
return <GithubLoginButton text={text} align={"center"} />;
|
return <GithubLoginButton text={text} align={"center"} />;
|
||||||
} else if (provider.type === "Google") {
|
} else if (provider.type === "Google") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user