Fix semicolons
This commit is contained in:
parent
2294d23b32
commit
3d7427ccca
5 changed files with 16 additions and 16 deletions
|
@ -53,9 +53,9 @@ interface IProps {
|
||||||
flagInvalid?: boolean;
|
flagInvalid?: boolean;
|
||||||
// If specified, contents will appear as a tooltip on the element and
|
// If specified, contents will appear as a tooltip on the element and
|
||||||
// validation feedback tooltips will be suppressed.
|
// validation feedback tooltips will be suppressed.
|
||||||
tooltipContent?: React.ReactNode,
|
tooltipContent?: React.ReactNode;
|
||||||
// If specified the tooltip will be shown regardless of feedback
|
// 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
|
// If specified alongside tooltipContent, the class name to apply to the
|
||||||
// tooltip itself.
|
// tooltip itself.
|
||||||
tooltipClassName?: string;
|
tooltipClassName?: string;
|
||||||
|
|
|
@ -47,13 +47,13 @@ interface IState extends IThemeState {
|
||||||
// String displaying the current selected fontSize.
|
// String displaying the current selected fontSize.
|
||||||
// Needs to be string for things like '17.' without
|
// Needs to be string for things like '17.' without
|
||||||
// trailing 0s.
|
// trailing 0s.
|
||||||
fontSize: string,
|
fontSize: string;
|
||||||
customThemeUrl: string,
|
customThemeUrl: string;
|
||||||
customThemeMessage: CustomThemeMessage,
|
customThemeMessage: CustomThemeMessage;
|
||||||
useCustomFontSize: boolean,
|
useCustomFontSize: boolean;
|
||||||
useSystemFont: boolean,
|
useSystemFont: boolean;
|
||||||
systemFont: string,
|
systemFont: string;
|
||||||
showAdvanced: boolean,
|
showAdvanced: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class AppearanceUserSettingsTab extends React.Component<IProps, IState> {
|
export default class AppearanceUserSettingsTab extends React.Component<IProps, IState> {
|
||||||
|
@ -349,7 +349,7 @@ export default class AppearanceUserSettingsTab extends React.Component<IProps, I
|
||||||
onChange={(value) => {
|
onChange={(value) => {
|
||||||
this.setState({
|
this.setState({
|
||||||
systemFont: value.target.value,
|
systemFont: value.target.value,
|
||||||
})
|
});
|
||||||
|
|
||||||
SettingsStore.setValue("systemFont", null, SettingLevel.DEVICE, 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">
|
return <div className="mx_SettingsTab_section mx_AppearanceUserSettingsTab_Advanced">
|
||||||
{toggle}
|
{toggle}
|
||||||
{advanced}
|
{advanced}
|
||||||
</div>
|
</div>;
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
|
|
@ -18,7 +18,7 @@ import { ActionPayload } from "../payloads";
|
||||||
import { Action } from "../actions";
|
import { Action } from "../actions";
|
||||||
|
|
||||||
export interface UpdateFontSizePayload extends ActionPayload {
|
export interface UpdateFontSizePayload extends ActionPayload {
|
||||||
action: Action.UpdateFontSize,
|
action: Action.UpdateFontSize;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The font size to set the root to
|
* The font size to set the root to
|
||||||
|
|
|
@ -18,7 +18,7 @@ import { ActionPayload } from "../payloads";
|
||||||
import { Action } from "../actions";
|
import { Action } from "../actions";
|
||||||
|
|
||||||
export interface UpdateSystemFontPayload extends ActionPayload {
|
export interface UpdateSystemFontPayload extends ActionPayload {
|
||||||
action: Action.UpdateSystemFont,
|
action: Action.UpdateSystemFont;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify whether to use a system font or the stylesheet font
|
* Specify whether to use a system font or the stylesheet font
|
||||||
|
|
|
@ -38,7 +38,7 @@ export class FontWatcher implements IWatcher {
|
||||||
this.setSystemFont({
|
this.setSystemFont({
|
||||||
useSystemFont: SettingsStore.getValue("useSystemFont"),
|
useSystemFont: SettingsStore.getValue("useSystemFont"),
|
||||||
font: SettingsStore.getValue("systemFont"),
|
font: SettingsStore.getValue("systemFont"),
|
||||||
})
|
});
|
||||||
this.dispatcherRef = dis.register(this.onAction);
|
this.dispatcherRef = dis.register(this.onAction);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ export class FontWatcher implements IWatcher {
|
||||||
if (payload.action === Action.UpdateFontSize) {
|
if (payload.action === Action.UpdateFontSize) {
|
||||||
this.setRootFontSize(payload.size);
|
this.setRootFontSize(payload.size);
|
||||||
} else if (payload.action === Action.UpdateSystemFont) {
|
} 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}) => {
|
private setSystemFont = ({useSystemFont, font}) => {
|
||||||
document.body.style.fontFamily = useSystemFont ? font : "";
|
document.body.style.fontFamily = useSystemFont ? font : "";
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue