Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit fa88eea

Browse files
committed
fix(LeftPanel.tsx): fix for linting errors
1 parent 357579d commit fa88eea

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/components/structures/LeftPanel.tsx

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const cssClasses = [
6060

6161
export default class LeftPanel extends React.Component<IProps, IState> {
6262
private listContainerRef: React.RefObject<HTMLDivElement> = createRef();
63-
private GroupFilterPanelWatcherRef: string;
63+
private groupFilterPanelWatcherRef: string;
6464
private bgImageWatcherRef: string;
6565
private focusedElement = null;
6666
private isDoingStickyHeaders = false;
@@ -70,17 +70,16 @@ export default class LeftPanel extends React.Component<IProps, IState> {
7070

7171
this.state = {
7272
showBreadcrumbs: BreadcrumbsStore.instance.visible,
73-
showGroupFilterPanel: SettingsStore.getValue('GroupFilterPanel.enableGroupFilterPanel'),
73+
showGroupFilterPanel: SettingsStore.getValue('TagPanel.enableTagPanel'),
7474
};
7575

7676
BreadcrumbsStore.instance.on(UPDATE_EVENT, this.onBreadcrumbsUpdate);
7777
RoomListStore.instance.on(LISTS_UPDATE_EVENT, this.onBreadcrumbsUpdate);
7878
OwnProfileStore.instance.on(UPDATE_EVENT, this.onBackgroundImageUpdate);
7979
this.bgImageWatcherRef = SettingsStore.watchSetting(
8080
"RoomList.backgroundImage", null, this.onBackgroundImageUpdate);
81-
this.GroupFilterPanelWatcherRef = SettingsStore.watchSetting("GroupFilterPanel.enableGroupFilterPanel", null,
82-
() => {
83-
this.setState({showGroupFilterPanel: SettingsStore.getValue("GroupFilterPanel.enableGroupFilterPanel")});
81+
this.groupFilterPanelWatcherRef = SettingsStore.watchSetting("TagPanel.enableTagPanel", null, () => {
82+
this.setState({showTagPanel: SettingsStore.getValue("TagPanel.enableTagPanel")});
8483
});
8584

8685
// We watch the middle panel because we don't actually get resized, the middle panel does.
@@ -89,7 +88,7 @@ export default class LeftPanel extends React.Component<IProps, IState> {
8988
}
9089

9190
public componentWillUnmount() {
92-
SettingsStore.unwatchSetting(this.GroupFilterPanelWatcherRef);
91+
SettingsStore.unwatchSetting(this.groupFilterPanelWatcherRef);
9392
SettingsStore.unwatchSetting(this.bgImageWatcherRef);
9493
BreadcrumbsStore.instance.off(UPDATE_EVENT, this.onBreadcrumbsUpdate);
9594
RoomListStore.instance.off(LISTS_UPDATE_EVENT, this.onBreadcrumbsUpdate);
@@ -395,7 +394,7 @@ export default class LeftPanel extends React.Component<IProps, IState> {
395394

396395
const containerClasses = classNames({
397396
"mx_LeftPanel": true,
398-
"mx_LeftPanel_hasGroupFilterPanel": !!GroupFilterPanel,
397+
"mx_LeftPanel_hasGroupFilterPanel": !!groupFilterPanel,
399398
"mx_LeftPanel_minimized": this.props.isMinimized,
400399
});
401400

@@ -406,7 +405,7 @@ export default class LeftPanel extends React.Component<IProps, IState> {
406405

407406
return (
408407
<div className={containerClasses}>
409-
{GroupFilterPanel}
408+
{groupFilterPanel}
410409
<aside className="mx_LeftPanel_roomListContainer">
411410
{this.renderHeader()}
412411
{this.renderSearchExplore()}

0 commit comments

Comments
 (0)