Fix semicolons

This commit is contained in:
Jorik Schellekens 2020-06-22 11:39:11 +01:00
parent 2294d23b32
commit 3d7427ccca
5 changed files with 16 additions and 16 deletions

View file

@ -53,9 +53,9 @@ interface IProps {
flagInvalid?: boolean;
// If specified, contents will appear as a tooltip on the element and
// validation feedback tooltips will be suppressed.
tooltipContent?: React.ReactNode,
tooltipContent?: React.ReactNode;
// If specified the tooltip will be shown regardless of feedback
forceTooltipVisible?: boolean,
forceTooltipVisible?: boolean;
// If specified alongside tooltipContent, the class name to apply to the
// tooltip itself.
tooltipClassName?: string;

View file

@ -47,13 +47,13 @@ interface IState extends IThemeState {
// String displaying the current selected fontSize.
// Needs to be string for things like '17.' without
// trailing 0s.
fontSize: string,
customThemeUrl: string,
customThemeMessage: CustomThemeMessage,
useCustomFontSize: boolean,
useSystemFont: boolean,
systemFont: string,
showAdvanced: boolean,
fontSize: string;
customThemeUrl: string;
customThemeMessage: CustomThemeMessage;
useCustomFontSize: boolean;
useSystemFont: boolean;
systemFont: string;
showAdvanced: boolean;
}
export default class AppearanceUserSettingsTab extends React.Component<IProps, IState> {
@ -349,7 +349,7 @@ export default class AppearanceUserSettingsTab extends React.Component<IProps, I
onChange={(value) => {
this.setState({
systemFont: value.target.value,
})
});
SettingsStore.setValue("systemFont", null, SettingLevel.DEVICE, value.target.value);
}}
@ -363,7 +363,7 @@ export default class AppearanceUserSettingsTab extends React.Component<IProps, I
return <div className="mx_SettingsTab_section mx_AppearanceUserSettingsTab_Advanced">
{toggle}
{advanced}
</div>
</div>;
}
render() {

View file

@ -18,7 +18,7 @@ import { ActionPayload } from "../payloads";
import { Action } from "../actions";
export interface UpdateFontSizePayload extends ActionPayload {
action: Action.UpdateFontSize,
action: Action.UpdateFontSize;
/**
* The font size to set the root to

View file

@ -18,7 +18,7 @@ import { ActionPayload } from "../payloads";
import { Action } from "../actions";
export interface UpdateSystemFontPayload extends ActionPayload {
action: Action.UpdateSystemFont,
action: Action.UpdateSystemFont;
/**
* Specify whether to use a system font or the stylesheet font

View file

@ -38,7 +38,7 @@ export class FontWatcher implements IWatcher {
this.setSystemFont({
useSystemFont: SettingsStore.getValue("useSystemFont"),
font: SettingsStore.getValue("systemFont"),
})
});
this.dispatcherRef = dis.register(this.onAction);
}
@ -50,7 +50,7 @@ export class FontWatcher implements IWatcher {
if (payload.action === Action.UpdateFontSize) {
this.setRootFontSize(payload.size);
} else if (payload.action === Action.UpdateSystemFont) {
this.setSystemFont(payload)
this.setSystemFont(payload);
}
};
@ -65,5 +65,5 @@ export class FontWatcher implements IWatcher {
private setSystemFont = ({useSystemFont, font}) => {
document.body.style.fontFamily = useSystemFont ? font : "";
}
};
}