Consolidate PasswordLogin state and input control/ownership

previously data was stored in two places which drifted
This commit is contained in:
Michael Telatynski 2020-11-18 12:38:56 +00:00
parent 0b74d3a0ef
commit 85fbc6d89f
2 changed files with 26 additions and 41 deletions

View file

@ -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}