Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
tgxn committed Nov 4, 2023
1 parent 5210eaa commit 7cf24ff
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions src/components/Header/AccountMenu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ import { logoutCurrent, selectUsers } from "../../reducers/accountReducer";

import { getSiteData } from "../../hooks/getSiteData";

import { HeaderChip, UserAvatar } from "../Display.jsx";
import { UserAvatar } from "../Display.jsx";
import { BasicInfoTooltip } from "../Tooltip.jsx";

import { parseActorId, getUserRole } from "../../utils.js";

import { addUser, setAccountIsLoading, setUsers, setCurrentUser } from "../../reducers/accountReducer";
import { setAccountIsLoading, setCurrentUser } from "../../reducers/accountReducer";

import { RoleIcons } from "../Shared/Icons.jsx";

Expand Down Expand Up @@ -122,7 +122,7 @@ function UserListItem({ user, onClose }) {
export default function AccountMenu() {
const users = useSelector(selectUsers);

const { baseUrl, siteData, localUser, localPerson, userRole } = getSiteData();
const { localPerson, userRole } = getSiteData();

const [anchorEl, setAnchorEl] = React.useState(null);
const [menuOpen, setMenuOpen] = React.useState(false);
Expand Down Expand Up @@ -181,20 +181,6 @@ export default function AccountMenu() {
})}
</>
)}
{/*
<MenuItem
sx={{
color: "text.body",
}}
onClick={() => {
handleClose();
queryClient.invalidateQueries({ queryKey: ["lemmyHttp"] });
dispatch(logoutCurrent());
}}
>
End Session
</MenuItem> */}
</Menu>
</>
);
Expand Down

0 comments on commit 7cf24ff

Please sign in to comment.