Show filterContainer if "UIComponent.filterContainer" is enabled (#10381)

Signed-off-by: Mikhail Aheichyk <mikhail.aheichyk@nordeck.net>
Co-authored-by: Mikhail Aheichyk <mikhail.aheichyk@nordeck.net>
This commit is contained in:
maheichyk
2023-03-21 09:06:43 +00:00
committed by GitHub
co-authored by Mikhail Aheichyk
parent 22451901d1
commit d4b81882e5
4 changed files with 64 additions and 1 deletions
+1 -1
View File
@@ -393,7 +393,7 @@ export default class LeftPanel extends React.Component<IProps, IState> {
return (
<div className={containerClasses}>
<div className="mx_LeftPanel_roomListContainer">
{this.renderSearchDialExplore()}
{shouldShowComponent(UIComponent.FilterContainer) && this.renderSearchDialExplore()}
{this.renderBreadcrumbs()}
{!this.props.isMinimized && <RoomListHeader onVisibilityChange={this.refreshStickyHeaders} />}
<UserOnboardingButton
+5
View File
@@ -64,4 +64,9 @@ export enum UIComponent {
* and integrations to the room, such as from the room information card.
*/
AddIntegrations = "UIComponent.addIntegrations",
/**
* Component that lead to the user being able to search, dial, explore rooms
*/
FilterContainer = "UIComponent.filterContainer",
}