feat: show language widget in signup and signin pages (#1180)

This commit is contained in:
Yaodong Yu
2022-10-03 22:40:19 +08:00
committed by GitHub
parent 5abcf913e6
commit 6da452d7e0
5 changed files with 53 additions and 29 deletions

View File

@ -25,6 +25,7 @@ import * as ApplicationBackend from "../backend/ApplicationBackend";
import {CountDownInput} from "../common/CountDownInput";
import SelectRegionBox from "../SelectRegionBox";
import CustomGithubCorner from "../CustomGithubCorner";
import SelectLanguageBox from "../SelectLanguageBox";
const formItemLayout = {
labelCol: {
@ -622,16 +623,19 @@ class SignupPage extends React.Component {
 
<Row>
<Col span={8} offset={application.formOffset === 0 || Setting.inIframe() || Setting.isMobile() ? 8 : application.formOffset} style={{display: "flex", justifyContent: "center"}} >
<div style={{marginBottom: "10px", textAlign: "center", ...formStyle}}>
{
Setting.renderHelmet(application)
}
{
Setting.renderLogo(application)
}
{
this.renderForm(application)
}
<div className="login-content">
<div style={{marginBottom: "10px", textAlign: "center", ...formStyle}}>
<SelectLanguageBox id="language-box-corner" style={{top: "3px", right: "5px"}} />
{
Setting.renderHelmet(application)
}
{
Setting.renderLogo(application)
}
{
this.renderForm(application)
}
</div>
</div>
</Col>
</Row>