diff --git a/src/components/views/settings/tabs/user/AppearanceUserSettingsTab.tsx b/src/components/views/settings/tabs/user/AppearanceUserSettingsTab.tsx index 2fc9c3e6c4..bcd87b290a 100644 --- a/src/components/views/settings/tabs/user/AppearanceUserSettingsTab.tsx +++ b/src/components/views/settings/tabs/user/AppearanceUserSettingsTab.tsx @@ -103,7 +103,7 @@ export default class AppearanceUserSettingsTab extends React.Component): void { + private onThemeChange = (e: React.ChangeEvent): void => { const newTheme = e.target.value; if (this.state.theme === newTheme) return; @@ -124,18 +124,18 @@ export default class AppearanceUserSettingsTab extends React.Component({action: Action.RecheckTheme, forceTheme: newTheme}); }; - private onUseSystemThemeChanged(checked: boolean) { + private onUseSystemThemeChanged = (checked: boolean): void => { this.setState({useSystemTheme: checked}); SettingsStore.setValue("use_system_theme", null, SettingLevel.DEVICE, checked); dis.dispatch({action: Action.RecheckTheme}); }; - private onFontSizeChanged(size: number) { + private onFontSizeChanged = (size: number): void => { this.setState({fontSize: size.toString()}); SettingsStore.setValue("fontSize", null, SettingLevel.DEVICE, size); }; - private async onValidateFontSize({value}: Pick): Promise { + private onValidateFontSize = async ({value}: Pick): Promise => { const parsedSize = parseFloat(value); const min = FontWatcher.MIN_SIZE; const max = FontWatcher.MAX_SIZE; @@ -155,7 +155,7 @@ export default class AppearanceUserSettingsTab extends React.Component => { let currentThemes: string[] = SettingsStore.getValue("custom_themes"); if (!currentThemes) currentThemes = []; currentThemes = currentThemes.map(c => c); // cheap clone @@ -187,7 +187,7 @@ export default class AppearanceUserSettingsTab extends React.Component) { + private onCustomThemeChange = (e: React.ChangeEvent): void => { this.setState({customThemeUrl: e.target.value}); };