More fixing...
This commit is contained in:
parent
15e765b65b
commit
7b8de81567
1 changed files with 3 additions and 6 deletions
|
@ -86,6 +86,7 @@ class SettingsPage extends React.PureComponent {
|
|||
}
|
||||
|
||||
onLanguageChange(e) {
|
||||
console.log(e);
|
||||
this.props.changeLanguage(e.target.value);
|
||||
}
|
||||
|
||||
|
@ -165,9 +166,7 @@ class SettingsPage extends React.PureComponent {
|
|||
type="radio"
|
||||
name="language"
|
||||
label={__("English")}
|
||||
onChange={() => {
|
||||
this.onLanguageChange.bind(this);
|
||||
}}
|
||||
onChange={this.onLanguageChange.bind(this)}
|
||||
defaultChecked={this.state.language == "en"}
|
||||
/>
|
||||
</div>
|
||||
|
@ -178,9 +177,7 @@ class SettingsPage extends React.PureComponent {
|
|||
name="language"
|
||||
key={dLang}
|
||||
label={window.app.i18n.resLang(dLang)}
|
||||
onChange={() => {
|
||||
this.onLanguageChange.bind(this);
|
||||
}}
|
||||
onChange={this.onLanguageChange.bind(this)}
|
||||
defaultChecked={this.state.language == dLang}
|
||||
/>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue