feat: add gitlab provider (#273)

Signed-off-by: sh1luo <690898835@qq.com>
This commit is contained in:
sh1luo
2021-08-19 21:03:57 +08:00
committed by Yang Luo
parent e1182bb635
commit 75e917a070
8 changed files with 279 additions and 2 deletions

View File

@ -32,6 +32,7 @@ import i18next from "i18next";
import LinkedInLoginButton from "./LinkedInLoginButton";
import WeComLoginButton from "./WeComLoginButton";
import LarkLoginButton from "./LarkLoginButton";
import GitLabLoginButton from "./GitLabLoginButton";
class LoginPage extends React.Component {
constructor(props) {
@ -170,6 +171,8 @@ class LoginPage extends React.Component {
return <WeComLoginButton text={text} align={"center"} />
} else if (type === "Lark") {
return <LarkLoginButton text={text} align={"center"} />
} else if (type === "GitLab") {
return <GitLabLoginButton text={text} align={"center"} />
}
return text;