Rename to SelfLoginPage.

This commit is contained in:
Yang Luo 2021-03-26 21:56:27 +08:00
parent b6b433f26a
commit 7fe9705303
2 changed files with 4 additions and 4 deletions

View File

@ -34,7 +34,7 @@ import CustomGithubCorner from "./CustomGithubCorner";
import * as Auth from "./auth/Auth"; import * as Auth from "./auth/Auth";
import Face from "./auth/Face"; import Face from "./auth/Face";
import LoginPage from "./auth/LoginPage"; import SelfLoginPage from "./auth/SelfLoginPage";
import * as AuthBackend from "./auth/AuthBackend"; import * as AuthBackend from "./auth/AuthBackend";
import AuthCallback from "./auth/AuthCallback"; import AuthCallback from "./auth/AuthCallback";
import SelectLanguageBox from './SelectLanguageBox'; import SelectLanguageBox from './SelectLanguageBox';
@ -289,7 +289,7 @@ class App extends Component {
</Menu> </Menu>
</Header> </Header>
<Switch> <Switch>
<Route exact path="/login" render={(props) => this.renderHomeIfLoggedIn(<LoginPage onLoggedIn={this.onLoggedIn.bind(this)} {...props} />)}/> <Route exact path="/login" render={(props) => this.renderHomeIfLoggedIn(<SelfLoginPage onLoggedIn={this.onLoggedIn.bind(this)} {...props} />)}/>
<Route exact path="/callback" component={AuthCallback}/> <Route exact path="/callback" component={AuthCallback}/>
<Route exact path="/" render={(props) => this.renderLoginIfNotLoggedIn(<HomePage account={this.state.account} onLoggedIn={this.onLoggedIn.bind(this)} {...props} />)}/> <Route exact path="/" render={(props) => this.renderLoginIfNotLoggedIn(<HomePage account={this.state.account} onLoggedIn={this.onLoggedIn.bind(this)} {...props} />)}/>
<Route exact path="/account" render={(props) => this.renderLoginIfNotLoggedIn(<AccountPage account={this.state.account} {...props} />)}/> <Route exact path="/account" render={(props) => this.renderLoginIfNotLoggedIn(<AccountPage account={this.state.account} {...props} />)}/>

View File

@ -16,7 +16,7 @@ import React from 'react';
import Face from "./Face"; import Face from "./Face";
import {authConfig} from "./Auth"; import {authConfig} from "./Auth";
class LoginPage extends React.Component { class SelfLoginPage extends React.Component {
render() { render() {
return ( return (
<Face type={"login"} applicationName={authConfig.appName} account={this.props.account} onLoggedIn={this.props.onLoggedIn.bind(this)} {...this.props} /> <Face type={"login"} applicationName={authConfig.appName} account={this.props.account} onLoggedIn={this.props.onLoggedIn.bind(this)} {...this.props} />
@ -24,4 +24,4 @@ class LoginPage extends React.Component {
} }
} }
export default LoginPage; export default SelfLoginPage;