Split out logic/UI for logging in
- Add 'PasswordLogin' UI component - Add 'LoginPage' wire component which, along with Signup from react SDK, replaces the 'Login' page. - Move UI code (state/props) from ServerConfig which was lobotomoised in the React SDK. Unfinished.
This commit is contained in:
parent
2cae5e7a00
commit
05eda88ea2
5 changed files with 367 additions and 15 deletions
|
@ -89,6 +89,10 @@ module.exports = React.createClass({
|
|||
});
|
||||
},
|
||||
|
||||
onRegisterClick: function() {
|
||||
this.showScreen("register");
|
||||
},
|
||||
|
||||
render: function() {
|
||||
var LeftPanel = sdk.getComponent('organisms.LeftPanel');
|
||||
var RoomView = sdk.getComponent('organisms.RoomView');
|
||||
|
@ -164,8 +168,9 @@ module.exports = React.createClass({
|
|||
/>
|
||||
);
|
||||
} else {
|
||||
var LoginPage = sdk.getComponent("pages.LoginPage");
|
||||
return (
|
||||
<Login onLoggedIn={this.onLoggedIn} />
|
||||
<LoginPage onLoggedIn={this.onLoggedIn} onRegisterClick={this.onRegisterClick} />
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue