feat: fix CSS issue that login error pages are not centered (#1371)

This commit is contained in:
Yaodong Yu
2022-12-06 14:00:17 +08:00
committed by GitHub
parent 30b7fd963f
commit e207fd243b

View File

@ -648,7 +648,7 @@ class App extends Component {
return ( return (
<> <>
<Layout id="parent-area"> <Layout id="parent-area">
<Content style={{display: "flex"}}> <Content style={{display: "flex", justifyContent: "center"}}>
<Switch> <Switch>
<Route exact path="/signup" render={(props) => this.renderHomeIfLoggedIn(<SignupPage account={this.state.account} {...props} />)} /> <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);}} />)} /> <Route exact path="/signup/:applicationName" render={(props) => this.renderHomeIfLoggedIn(<SignupPage account={this.state.account} {...props} onUpdateAccount={(account) => {this.onUpdateAccount(account);}} />)} />