You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-18 09:22:18 +03:00
Clean up classnames
This commit is contained in:
@ -15,7 +15,6 @@ limitations under the License.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import classnames from 'classnames';
|
|
||||||
import { createRef } from "react";
|
import { createRef } from "react";
|
||||||
import TagPanel from "./TagPanel";
|
import TagPanel from "./TagPanel";
|
||||||
import classNames from "classnames";
|
import classNames from "classnames";
|
||||||
@ -206,7 +205,7 @@ export default class LeftPanel2 extends React.Component<IProps, IState> {
|
|||||||
"mx_LeftPanel2_minimized": this.props.isMinimized,
|
"mx_LeftPanel2_minimized": this.props.isMinimized,
|
||||||
});
|
});
|
||||||
|
|
||||||
const className = classnames(
|
const roomListClasses = classNames(
|
||||||
"mx_LeftPanel2_actualRoomListContainer",
|
"mx_LeftPanel2_actualRoomListContainer",
|
||||||
"mx_AutoHideScrollbar",
|
"mx_AutoHideScrollbar",
|
||||||
);
|
);
|
||||||
@ -218,7 +217,7 @@ export default class LeftPanel2 extends React.Component<IProps, IState> {
|
|||||||
{this.renderHeader()}
|
{this.renderHeader()}
|
||||||
{this.renderSearchExplore()}
|
{this.renderSearchExplore()}
|
||||||
<div
|
<div
|
||||||
className={className}
|
className={roomListClasses}
|
||||||
onScroll={this.onScroll}
|
onScroll={this.onScroll}
|
||||||
ref={this.listContainerRef}
|
ref={this.listContainerRef}
|
||||||
>{roomList}</div>
|
>{roomList}</div>
|
||||||
|
Reference in New Issue
Block a user