feat: responsive footer (#1003)

This commit is contained in:
Bingchang Chen 2022-08-10 20:31:42 +08:00 committed by GitHub
parent fb203a6f30
commit 53ad454962
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -669,6 +669,7 @@ class App extends Component {
if (this.isDoorPages()) {
return (
<div style={{position: "relative", minHeight: "100vh"}}>
<div id="content-wrap" style={{flexDirection: "column"}}>
<Switch>
<Route exact path="/signup" render={(props) => this.renderHomeIfLoggedIn(<SignupPage account={this.state.account} {...props} />)} />
<Route exact path="/signup/:applicationName" render={(props) => this.renderHomeIfLoggedIn(<SignupPage account={this.state.account} {...props} onUpdateAccount={(account) => {this.onUpdateAccount(account);}} />)} />
@ -689,6 +690,7 @@ class App extends Component {
<Route path="" render={() => <Result status="404" title="404 NOT FOUND" subTitle={i18next.t("general:Sorry, the page you visited does not exist.")}
extra={<a href="/"><Button type="primary">{i18next.t("general:Back Home")}</Button></a>} />} />
</Switch>
</div>
{
this.renderFooter()
}