Fully appease prop types
parent
2acb1663eb
commit
f7b3662e0b
|
@ -107,7 +107,6 @@ export default class AppearanceUserSettingsTab extends React.Component {
|
||||||
|
|
||||||
_onValidateFontSize = ({value}) => {
|
_onValidateFontSize = ({value}) => {
|
||||||
console.log({value});
|
console.log({value});
|
||||||
this.setState({fontSize: value});
|
|
||||||
|
|
||||||
const parsedSize = parseFloat(value);
|
const parsedSize = parseFloat(value);
|
||||||
const min = SettingsStore.getValue("font_size_min");
|
const min = SettingsStore.getValue("font_size_min");
|
||||||
|
@ -274,11 +273,11 @@ export default class AppearanceUserSettingsTab extends React.Component {
|
||||||
type="text"
|
type="text"
|
||||||
label={_t("Font size")}
|
label={_t("Font size")}
|
||||||
autoComplete="off"
|
autoComplete="off"
|
||||||
placeholder={toString(this.state.fontSize)}
|
placeholder={this.state.fontSize.toString()}
|
||||||
value={toString(this.state.fontSize)}
|
value={this.state.fontSize.toString()}
|
||||||
id="font_size_field"
|
id="font_size_field"
|
||||||
onValidate={this._onValidateFontSize}
|
onValidate={this._onValidateFontSize}
|
||||||
onChange={({value}) => this.setState({fontSize: value})}
|
onChange={(value) => this.setState({fontSize: value.target.value})}
|
||||||
disabled={!this.state.useCustomFontSize}
|
disabled={!this.state.useCustomFontSize}
|
||||||
/>
|
/>
|
||||||
</div>;
|
</div>;
|
||||||
|
|
Loading…
Reference in New Issue