improvement: better popover menu styles

This commit is contained in:
canove
2020-10-18 16:56:45 -03:00
parent 5e769e5f8e
commit 1c8f86fd44
3 changed files with 10 additions and 7 deletions

View File

@@ -2,7 +2,6 @@ import React, { useState, useContext, useEffect } from "react";
import clsx from "clsx";
import {
Popover,
makeStyles,
Drawer,
AppBar,
@@ -12,6 +11,7 @@ import {
Divider,
MenuItem,
IconButton,
Menu,
} from "@material-ui/core";
import MenuIcon from "@material-ui/icons/Menu";
@@ -215,9 +215,10 @@ const LoggedInLayout = ({ appTitle, children }) => {
>
<AccountCircle />
</IconButton>
<Popover
<Menu
id="menu-appbar"
anchorEl={anchorEl}
getContentAnchorEl={null}
anchorOrigin={{
vertical: "bottom",
horizontal: "right",
@@ -235,7 +236,7 @@ const LoggedInLayout = ({ appTitle, children }) => {
<MenuItem onClick={handleLogout}>
{i18n.t("mainDrawer.appBar.user.logout")}
</MenuItem>
</Popover>
</Menu>
</div>
</Toolbar>
</AppBar>