Add most of the UI for the new room list's menu button

Incomplete implementation: buttons don't work, some text is missing, etc
This commit is contained in:
Travis Ralston 2020-06-07 22:06:41 -06:00
parent bb3cdd3335
commit 8e0247afe5
13 changed files with 397 additions and 5 deletions

View file

@ -24,6 +24,7 @@ import * as Avatar from '../../Avatar';
import { _t } from '../../languageHandler';
import dis from "../../dispatcher/dispatcher";
import {ContextMenu, ContextMenuButton} from "./ContextMenu";
import {Action} from "../../dispatcher/actions";
const AVATAR_SIZE = 28;
@ -75,7 +76,7 @@ export default class TopLeftMenuButton extends React.Component {
onAction = (payload) => {
// For accessibility
if (payload.action === "toggle_top_left_menu") {
if (payload.action === Action.ToggleUserMenu) {
if (this._buttonRef) this._buttonRef.click();
}
};