feat: add footer to door pages (#868)

This commit is contained in:
Bingchang Chen
2022-07-08 20:36:49 +08:00
committed by GitHub
parent 81f2d01dc1
commit cf4e76f9dc

View File

@ -663,6 +663,7 @@ class App extends Component {
renderPage() {
if (this.isDoorPages()) {
return (
<div>
<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)}} />)}/>
@ -681,6 +682,10 @@ 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>
{
this.renderFooter()
}
</div>
)
}