refactor: rename RoomListView as RoomListPanel (#29361)
This commit is contained in:
@@ -37,7 +37,7 @@ import PosthogTrackers from "../../PosthogTrackers";
|
||||
import type PageType from "../../PageTypes";
|
||||
import { Landmark, LandmarkNavigation } from "../../accessibility/LandmarkNavigation";
|
||||
import SettingsStore from "../../settings/SettingsStore";
|
||||
import { RoomListView } from "../views/rooms/RoomListView";
|
||||
import { RoomListPanel } from "../views/rooms/RoomListPanel";
|
||||
|
||||
interface IProps {
|
||||
isMinimized: boolean;
|
||||
@@ -390,7 +390,7 @@ export default class LeftPanel extends React.Component<IProps, IState> {
|
||||
return (
|
||||
<div className={containerClasses}>
|
||||
<div className="mx_LeftPanel_roomListContainer">
|
||||
<RoomListView activeSpace={this.state.activeSpace} />
|
||||
<RoomListPanel activeSpace={this.state.activeSpace} />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -12,7 +12,7 @@ import { UIComponent } from "../../../../settings/UIFeature";
|
||||
import { RoomListSearch } from "./RoomListSearch";
|
||||
import { RoomListHeaderView } from "./RoomListHeaderView";
|
||||
|
||||
type RoomListViewProps = {
|
||||
type RoomListPanelProps = {
|
||||
/**
|
||||
* Current active space
|
||||
* See {@link RoomListSearch}
|
||||
@@ -21,13 +21,13 @@ type RoomListViewProps = {
|
||||
};
|
||||
|
||||
/**
|
||||
* A view component for the room list.
|
||||
* The panel of the room list
|
||||
*/
|
||||
export const RoomListView: React.FC<RoomListViewProps> = ({ activeSpace }) => {
|
||||
export const RoomListPanel: React.FC<RoomListPanelProps> = ({ activeSpace }) => {
|
||||
const displayRoomSearch = shouldShowComponent(UIComponent.FilterContainer);
|
||||
|
||||
return (
|
||||
<section className="mx_RoomListView" data-testid="room-list-view">
|
||||
<section className="mx_RoomListPanel" data-testid="room-list-panel">
|
||||
{displayRoomSearch && <RoomListSearch activeSpace={activeSpace} />}
|
||||
<RoomListHeaderView />
|
||||
</section>
|
||||
@@ -5,4 +5,4 @@
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
export { RoomListView } from "./RoomListView";
|
||||
export { RoomListPanel } from "./RoomListPanel";
|
||||
Reference in New Issue
Block a user