Show CustomGithubCorner in other pages.

This commit is contained in:
Gucheng Wang
2021-11-06 22:04:20 +08:00
parent 467d709b8e
commit cbf973882d
4 changed files with 63 additions and 64 deletions

View File

@ -499,7 +499,6 @@ class App extends Component {
}
}
renderFooter() {
// How to keep your footer where it belongs ?
// https://www.freecodecamp.org/neyarnws/how-to-keep-your-footer-where-it-belongs-59c6aa05c59c/

View File

@ -21,13 +21,8 @@ import * as Setting from "../Setting";
import i18next from "i18next";
import {CountDownInput} from "../component/CountDownInput";
import * as UserBackend from "../backend/UserBackend";
import {
CheckCircleOutlined,
KeyOutlined,
LockOutlined,
SolutionOutlined,
UserOutlined,
} from "@ant-design/icons";
import {CheckCircleOutlined, KeyOutlined, LockOutlined, SolutionOutlined, UserOutlined} from "@ant-design/icons";
import CustomGithubCorner from "../CustomGithubCorner";
const { Step } = Steps;
const { Option } = Select;
@ -474,7 +469,7 @@ class ForgetPage extends React.Component {
}
return (
<>
<React.Fragment>
<Divider style={{ fontSize: "28px" }}>
{i18next.t("forget:Retrieve password")}
</Divider>
@ -512,7 +507,8 @@ class ForgetPage extends React.Component {
</div>
</Col>
</Row>
</>
<CustomGithubCorner />
</React.Fragment>
);
}
}

View File

@ -34,6 +34,7 @@ import LinkedInLoginButton from "./LinkedInLoginButton";
import WeComLoginButton from "./WeComLoginButton";
import LarkLoginButton from "./LarkLoginButton";
import GitLabLoginButton from "./GitLabLoginButton";
import CustomGithubCorner from "../CustomGithubCorner";
class LoginPage extends React.Component {
constructor(props) {
@ -435,6 +436,7 @@ class LoginPage extends React.Component {
{
Setting.renderHelmet(application)
}
<CustomGithubCorner />
{
Setting.renderLogo(application)
}

View File

@ -24,6 +24,7 @@ import * as ApplicationBackend from "../backend/ApplicationBackend";
import * as UserBackend from "../backend/UserBackend";
import {CountDownInput} from "../component/CountDownInput";
import SelectRegionBox from "../SelectRegionBox";
import CustomGithubCorner from "../CustomGithubCorner";
const formItemLayout = {
labelCol: {
@ -528,6 +529,7 @@ class SignupPage extends React.Component {
return (
<div>
<CustomGithubCorner />
&nbsp;
<Row>
<Col span={24} style={{display: "flex", justifyContent: "center"}} >