Clean up classnames

This commit is contained in:
Jorik Schellekens 2020-07-01 15:15:18 +01:00
parent d2fb30a211
commit ad27dbbfab

View file

@ -15,7 +15,6 @@ limitations under the License.
*/
import * as React from "react";
import classnames from 'classnames';
import { createRef } from "react";
import TagPanel from "./TagPanel";
import classNames from "classnames";
@ -206,7 +205,7 @@ export default class LeftPanel2 extends React.Component<IProps, IState> {
"mx_LeftPanel2_minimized": this.props.isMinimized,
});
const className = classnames(
const roomListClasses = classNames(
"mx_LeftPanel2_actualRoomListContainer",
"mx_AutoHideScrollbar",
);
@ -218,7 +217,7 @@ export default class LeftPanel2 extends React.Component<IProps, IState> {
{this.renderHeader()}
{this.renderSearchExplore()}
<div
className={className}
className={roomListClasses}
onScroll={this.onScroll}
ref={this.listContainerRef}
>{roomList}</div>