Consolidate PasswordLogin state and input control/ownership
previously data was stored in two places which drifted
This commit is contained in:
parent
0b74d3a0ef
commit
85fbc6d89f
2 changed files with 26 additions and 41 deletions
|
@ -566,9 +566,9 @@ export default class LoginComponent extends React.Component {
|
|||
<PasswordLogin
|
||||
onSubmit={this.onPasswordLogin}
|
||||
onEditServerDetailsClick={onEditServerDetailsClick}
|
||||
initialUsername={this.state.username}
|
||||
initialPhoneCountry={this.state.phoneCountry}
|
||||
initialPhoneNumber={this.state.phoneNumber}
|
||||
username={this.state.username}
|
||||
phoneCountry={this.state.phoneCountry}
|
||||
phoneNumber={this.state.phoneNumber}
|
||||
onUsernameChanged={this.onUsernameChanged}
|
||||
onUsernameBlur={this.onUsernameBlur}
|
||||
onPhoneCountryChanged={this.onPhoneCountryChanged}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue