From 357579d6ba73e91875556152006afa85a21ced22 Mon Sep 17 00:00:00 2001 From: Arsh Sharma Date: Tue, 13 Oct 2020 17:04:39 +0530 Subject: [PATCH] fixed errors in leftpanel.tsx --- src/components/structures/LeftPanel.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/structures/LeftPanel.tsx b/src/components/structures/LeftPanel.tsx index a462f20689..c47d76658e 100644 --- a/src/components/structures/LeftPanel.tsx +++ b/src/components/structures/LeftPanel.tsx @@ -17,7 +17,7 @@ limitations under the License. import * as React from "react"; import { createRef } from "react"; import GroupFilterPanel from "./GroupFilterPanel"; -import CustomRoomGroupFilterPanel from "./CustomRoomGroupFilterPanel"; +import CustomRoomTagPanel from "./CustomRoomTagPanel"; import classNames from "classnames"; import dis from "../../dispatcher/dispatcher"; import { _t } from "../../languageHandler"; @@ -78,7 +78,8 @@ export default class LeftPanel extends React.Component { OwnProfileStore.instance.on(UPDATE_EVENT, this.onBackgroundImageUpdate); this.bgImageWatcherRef = SettingsStore.watchSetting( "RoomList.backgroundImage", null, this.onBackgroundImageUpdate); - this.GroupFilterPanelWatcherRef = SettingsStore.watchSetting("GroupFilterPanel.enableGroupFilterPanel", null, () => { + this.GroupFilterPanelWatcherRef = SettingsStore.watchSetting("GroupFilterPanel.enableGroupFilterPanel", null, + () => { this.setState({showGroupFilterPanel: SettingsStore.getValue("GroupFilterPanel.enableGroupFilterPanel")}); }); @@ -375,10 +376,10 @@ export default class LeftPanel extends React.Component { } public render(): React.ReactNode { - const GroupFilterPanel = !this.state.showGroupFilterPanel ? null : ( + const groupFilterPanel = !this.state.showGroupFilterPanel ? null : (
- {SettingsStore.getValue("feature_custom_tags") ? : null} + {SettingsStore.getValue("feature_custom_tags") ? : null}
);