ci: Show provider.displayName in signin button

This commit is contained in:
Yang Luo 2023-08-11 16:29:52 +08:00
parent fe4a4328aa
commit 9156bd426b

View File

@ -46,7 +46,7 @@ import {getEvent} from "./Util";
import {Modal} from "antd";
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") {
return <GithubLoginButton text={text} align={"center"} />;
} else if (provider.type === "Google") {