|
@@ -9,18 +9,10 @@ import MenuItem from '@mui/material/MenuItem';
|
|
|
import ListItemIcon from '@mui/material/ListItemIcon';
|
|
|
import Divider from '@mui/material/Divider';
|
|
|
import IconButton from '@mui/material/IconButton';
|
|
|
-import Typography from '@mui/material/Typography';
|
|
|
import Tooltip from '@mui/material/Tooltip';
|
|
|
-import PersonAdd from '@mui/icons-material/PersonAdd';
|
|
|
-import Settings from '@mui/icons-material/Settings';
|
|
|
import Logout from '@mui/icons-material/Logout';
|
|
|
-import { ListItem } from "@mui/material";
|
|
|
import { Link } from "react-router-dom";
|
|
|
|
|
|
-export default function AccountMenu() {
|
|
|
-
|
|
|
-}
|
|
|
-
|
|
|
const Profile = ({ user, onLogout }) => {
|
|
|
const [anchorEl, setAnchorEl] = useState(null);
|
|
|
const open = Boolean(anchorEl);
|
|
@@ -33,17 +25,6 @@ const Profile = ({ user, onLogout }) => {
|
|
|
setAnchorEl(null);
|
|
|
}
|
|
|
return (
|
|
|
- // <>
|
|
|
- // {user && <div>
|
|
|
- // {user.avatar ?
|
|
|
- // <Avatar src={user.avatar.url} alt={user.login} />
|
|
|
- // :
|
|
|
- // <Avatar>{(user.nick && user.nick[0]) || user.login[0]}</Avatar>}
|
|
|
- // <span>{user.nick || user.login}</span>
|
|
|
- // <a href="/profile">Редактировать профиль</a>
|
|
|
- // <Button onClick={() => onLogout()}>Выйти</Button>
|
|
|
- // </div>}
|
|
|
- // </>
|
|
|
|
|
|
<>
|
|
|
<Box sx={{ display: 'flex', alignItems: 'center', textAlign: 'center' }}>
|