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

Commit 357579d

Browse files
committed
fixed errors in leftpanel.tsx
1 parent f5a40ef commit 357579d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/components/structures/LeftPanel.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ limitations under the License.
1717
import * as React from "react";
1818
import { createRef } from "react";
1919
import GroupFilterPanel from "./GroupFilterPanel";
20-
import CustomRoomGroupFilterPanel from "./CustomRoomGroupFilterPanel";
20+
import CustomRoomTagPanel from "./CustomRoomTagPanel";
2121
import classNames from "classnames";
2222
import dis from "../../dispatcher/dispatcher";
2323
import { _t } from "../../languageHandler";
@@ -78,7 +78,8 @@ export default class LeftPanel extends React.Component<IProps, IState> {
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, () => {
81+
this.GroupFilterPanelWatcherRef = SettingsStore.watchSetting("GroupFilterPanel.enableGroupFilterPanel", null,
82+
() => {
8283
this.setState({showGroupFilterPanel: SettingsStore.getValue("GroupFilterPanel.enableGroupFilterPanel")});
8384
});
8485

@@ -375,10 +376,10 @@ export default class LeftPanel extends React.Component<IProps, IState> {
375376
}
376377

377378
public render(): React.ReactNode {
378-
const GroupFilterPanel = !this.state.showGroupFilterPanel ? null : (
379+
const groupFilterPanel = !this.state.showGroupFilterPanel ? null : (
379380
<div className="mx_LeftPanel_GroupFilterPanelContainer">
380381
<GroupFilterPanel />
381-
{SettingsStore.getValue("feature_custom_tags") ? <CustomRoomGroupFilterPanel /> : null}
382+
{SettingsStore.getValue("feature_custom_tags") ? <CustomRoomTagPanel /> : null}
382383
</div>
383384
);
384385

0 commit comments

Comments
 (0)