fix: add missing provider buttons (#215)

Signed-off-by: sh1luo <690898835@qq.com>
This commit is contained in:
sh1luo
2021-08-01 22:10:47 +08:00
committed by GitHub
parent 1a2d85102c
commit bf77992457
3 changed files with 72 additions and 2 deletions

View File

@ -29,6 +29,8 @@ import GiteeLoginButton from "./GiteeLoginButton";
import WechatLoginButton from "./WechatLoginButton";
import WeiboLoginButton from "./WeiboLoginButton";
import i18next from "i18next";
import LinkedInLoginButton from "./LinkedInLoginButton";
import WeComLoginButton from "./WeComLoginButton";
class LoginPage extends React.Component {
constructor(props) {
@ -161,9 +163,13 @@ class LoginPage extends React.Component {
return <WechatLoginButton text={text} align={"center"} />
} else if (type === "DingTalk") {
return <DingTalkLoginButton text={text} align={"center"} />
} else {
return text;
} else if (type === "LinkedIn"){
return <LinkedInLoginButton text={text} align={"center"} />
} else if (type === "WeCom") {
return <WeComLoginButton text={text} align={"center"} />
}
return text;
}
renderProviderLogo(provider, application, width, margin, size) {