Skip to content

Commit

Permalink
feat(web-ui): make current organization avatar link to page (#925)
Browse files Browse the repository at this point in the history
Co-authored-by: Johan Book <{ID}+{username}@users.noreply.github.com>
  • Loading branch information
johanbook and Johan Book authored Jul 24, 2024
1 parent 6e43d30 commit d6a962a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { ReactElement, useState } from "react";
import { useNavigate } from "react-router";

import { ErrorOutline } from "@mui/icons-material";
import {
Expand Down Expand Up @@ -102,6 +103,7 @@ function MenuContent({ currentOrganizationId }: MenuContentProps) {

export function CurrentOrganizationAvatar(): ReactElement {
const isMobile = useIsMobile();
const navigate = useNavigate();

const [drawerIsOpen, setIsDrawerOpen] = useState(false);

Expand Down Expand Up @@ -131,7 +133,9 @@ export function CurrentOrganizationAvatar(): ReactElement {
sx={{ zIndex: (theme) => theme.zIndex.drawer + 2 }}
>
<Box
onClick={() => navigate("/group")}
sx={{
cursor: "pointer",
display: "flex",
alignItems: "center",
p: 2,
Expand Down

0 comments on commit d6a962a

Please sign in to comment.