Removed the commented out code
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>pull/21833/head
parent
f2d236d429
commit
65ef4f2f22
|
@ -28,13 +28,11 @@ import { FontWatcher } from "../../../../../settings/watchers/FontWatcher";
|
||||||
import { RecheckThemePayload } from '../../../../../dispatcher/payloads/RecheckThemePayload';
|
import { RecheckThemePayload } from '../../../../../dispatcher/payloads/RecheckThemePayload';
|
||||||
import { Action } from '../../../../../dispatcher/actions';
|
import { Action } from '../../../../../dispatcher/actions';
|
||||||
import { IValidationResult, IFieldState } from '../../../elements/Validation';
|
import { IValidationResult, IFieldState } from '../../../elements/Validation';
|
||||||
//import StyledRadioButton from '../../../elements/StyledRadioButton';
|
|
||||||
import StyledCheckbox from '../../../elements/StyledCheckbox';
|
import StyledCheckbox from '../../../elements/StyledCheckbox';
|
||||||
import SettingsFlag from '../../../elements/SettingsFlag';
|
import SettingsFlag from '../../../elements/SettingsFlag';
|
||||||
import Field from '../../../elements/Field';
|
import Field from '../../../elements/Field';
|
||||||
import EventTilePreview from '../../../elements/EventTilePreview';
|
import EventTilePreview from '../../../elements/EventTilePreview';
|
||||||
import StyledRadioGroup from "../../../elements/StyledRadioGroup";
|
import StyledRadioGroup from "../../../elements/StyledRadioGroup";
|
||||||
//import classNames from 'classnames';
|
|
||||||
import { SettingLevel } from "../../../../../settings/SettingLevel";
|
import { SettingLevel } from "../../../../../settings/SettingLevel";
|
||||||
import {UIFeature} from "../../../../../settings/UIFeature";
|
import {UIFeature} from "../../../../../settings/UIFeature";
|
||||||
import {Layout} from "../../../../../settings/Layout";
|
import {Layout} from "../../../../../settings/Layout";
|
||||||
|
@ -214,16 +212,6 @@ export default class AppearanceUserSettingsTab extends React.Component<IProps, I
|
||||||
this.setState({customThemeUrl: e.target.value});
|
this.setState({customThemeUrl: e.target.value});
|
||||||
};
|
};
|
||||||
|
|
||||||
/*private onLayoutChange = (e: React.ChangeEvent<HTMLInputElement>): void => {
|
|
||||||
const val = e.target.value === "true";
|
|
||||||
|
|
||||||
this.setState({
|
|
||||||
useIRCLayout: val,
|
|
||||||
});
|
|
||||||
|
|
||||||
SettingsStore.setValue("useIRCLayout", null, SettingLevel.DEVICE, val);
|
|
||||||
};*/
|
|
||||||
|
|
||||||
private onIRCLayoutChange = (enabled: boolean) => {
|
private onIRCLayoutChange = (enabled: boolean) => {
|
||||||
if (enabled) {
|
if (enabled) {
|
||||||
this.setState({layout: Layout.IRC});
|
this.setState({layout: Layout.IRC});
|
||||||
|
@ -353,50 +341,6 @@ export default class AppearanceUserSettingsTab extends React.Component<IProps, I
|
||||||
</div>;
|
</div>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*private renderLayoutSection = () => {
|
|
||||||
return <div className="mx_SettingsTab_section mx_AppearanceUserSettingsTab_Layout">
|
|
||||||
<span className="mx_SettingsTab_subheading">{_t("Message layout")}</span>
|
|
||||||
|
|
||||||
<div className="mx_AppearanceUserSettingsTab_Layout_RadioButtons">
|
|
||||||
<div className={classNames("mx_AppearanceUserSettingsTab_Layout_RadioButton", {
|
|
||||||
mx_AppearanceUserSettingsTab_Layout_RadioButton_selected: this.state.useIRCLayout,
|
|
||||||
})}>
|
|
||||||
<EventTilePreview
|
|
||||||
className="mx_AppearanceUserSettingsTab_Layout_RadioButton_preview"
|
|
||||||
message={this.MESSAGE_PREVIEW_TEXT}
|
|
||||||
useIRCLayout={true}
|
|
||||||
/>
|
|
||||||
<StyledRadioButton
|
|
||||||
name="layout"
|
|
||||||
value="true"
|
|
||||||
checked={this.state.useIRCLayout}
|
|
||||||
onChange={this.onLayoutChange}
|
|
||||||
>
|
|
||||||
{_t("Compact")}
|
|
||||||
</StyledRadioButton>
|
|
||||||
</div>
|
|
||||||
<div className="mx_AppearanceUserSettingsTab_spacer" />
|
|
||||||
<div className={classNames("mx_AppearanceUserSettingsTab_Layout_RadioButton", {
|
|
||||||
mx_AppearanceUserSettingsTab_Layout_RadioButton_selected: !this.state.useIRCLayout,
|
|
||||||
})}>
|
|
||||||
<EventTilePreview
|
|
||||||
className="mx_AppearanceUserSettingsTab_Layout_RadioButton_preview"
|
|
||||||
message={this.MESSAGE_PREVIEW_TEXT}
|
|
||||||
useIRCLayout={false}
|
|
||||||
/>
|
|
||||||
<StyledRadioButton
|
|
||||||
name="layout"
|
|
||||||
value="false"
|
|
||||||
checked={!this.state.useIRCLayout}
|
|
||||||
onChange={this.onLayoutChange}
|
|
||||||
>
|
|
||||||
{_t("Modern")}
|
|
||||||
</StyledRadioButton>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>;
|
|
||||||
};*/
|
|
||||||
|
|
||||||
private renderAdvancedSection() {
|
private renderAdvancedSection() {
|
||||||
if (!SettingsStore.getValue(UIFeature.AdvancedSettings)) return null;
|
if (!SettingsStore.getValue(UIFeature.AdvancedSettings)) return null;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue