Rename UserMenuButton to UserMenu for new scope

pull/21833/head
Travis Ralston 2020-06-25 19:29:12 -06:00
parent 85c5bb3bc3
commit dafce40d1b
4 changed files with 4 additions and 4 deletions

View File

@ -30,7 +30,7 @@
@import "./structures/_ToastContainer.scss";
@import "./structures/_TopLeftMenuButton.scss";
@import "./structures/_UploadBar.scss";
@import "./structures/_UserMenuButton.scss";
@import "./structures/_UserMenu.scss";
@import "./structures/_ViewSource.scss";
@import "./structures/auth/_CompleteSecurity.scss";
@import "./structures/auth/_Login.scss";

View File

@ -24,7 +24,7 @@ import RoomList2 from "../views/rooms/RoomList2";
import { Action } from "../../dispatcher/actions";
import { MatrixClientPeg } from "../../MatrixClientPeg";
import BaseAvatar from '../views/avatars/BaseAvatar';
import UserMenuButton from "./UserMenuButton";
import UserMenu from "./UserMenuButton";
import RoomSearch from "./RoomSearch";
import AccessibleButton from "../views/elements/AccessibleButton";
import RoomBreadcrumbs2 from "../views/rooms/RoomBreadcrumbs2";
@ -184,7 +184,7 @@ export default class LeftPanel2 extends React.Component<IProps, IState> {
let name = <span className="mx_LeftPanel2_userName">{OwnProfileStore.instance.displayName}</span>;
let buttons = (
<span className="mx_LeftPanel2_headerButtons">
<UserMenuButton />
<UserMenu />
</span>
);
if (this.props.isMinimized) {

View File

@ -44,7 +44,7 @@ interface IState {
isDarkTheme: boolean;
}
export default class UserMenuButton extends React.Component<IProps, IState> {
export default class UserMenu extends React.Component<IProps, IState> {
private dispatcherRef: string;
private themeWatcherRef: string;
private buttonRef: React.RefObject<HTMLButtonElement> = createRef();