Minimal UI fixes

Add a label. Make css selector match style. Also fix import.
pull/21833/head
David Baker 2017-05-24 14:36:14 +01:00
parent aef068b00e
commit b677a2002f
1 changed files with 8 additions and 4 deletions

View File

@ -30,7 +30,7 @@ const AddThreepid = require('../../AddThreepid');
const SdkConfig = require('../../SdkConfig');
import AccessibleButton from '../views/elements/AccessibleButton';
import _t from 'counterpart-riot';
import * as languageHandler from('../../languageHandler');
import * as languageHandler from '../../languageHandler';
import * as FormattingUtils from '../../utils/FormattingUtils';
// if this looks like a release, use the 'version' from package.json; else use
@ -566,9 +566,13 @@ module.exports = React.createClass({
_renderLanguageSetting: function () {
const LanguageDropdown = sdk.getComponent('views.elements.LanguageDropdown');
return <LanguageDropdown ref="language" onOptionChange={this.onLanguageChange}
className="mx_UserSettings_Language"
value={this.state.Language} />;
return <div>
<label htmlFor="languageSelector">Interface Language</label>
<LanguageDropdown ref="language" onOptionChange={this.onLanguageChange}
className="mx_UserSettings_language"
value={this.state.Language}
/>
</div>;
},
_renderUserInterfaceSettings: function() {