Skip to content

Commit 05098dc

Browse files
committed
Adds a link to edit the profile icon from the main menu
1 parent 05b6a26 commit 05098dc

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

apps/webapp/app/components/navigation/SideMenu.tsx

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@ import {
1313
GlobeAmericasIcon,
1414
IdentificationIcon,
1515
KeyIcon,
16+
PencilSquareIcon,
1617
PlusIcon,
1718
RectangleStackIcon,
1819
ServerStackIcon,
1920
Squares2X2Icon,
2021
UsersIcon,
2122
} from "@heroicons/react/20/solid";
22-
import { useNavigation } from "@remix-run/react";
23+
import { Link, useNavigation } from "@remix-run/react";
2324
import { useEffect, useRef, useState, type ReactNode } from "react";
2425
import simplur from "simplur";
2526
import { BranchEnvironmentIconSmall } from "~/assets/icons/EnvironmentIcons";
@@ -397,9 +398,15 @@ function ProjectSelector({
397398
>
398399
<div className="flex flex-col gap-2 bg-charcoal-750 p-2">
399400
<div className="flex items-center gap-2.5">
400-
<div className="box-content size-10 overflow-clip rounded-sm bg-charcoal-800">
401+
<Link
402+
to={organizationSettingsPath(organization)}
403+
className="group relative box-content size-10 overflow-clip rounded-sm bg-charcoal-800"
404+
>
401405
<Avatar avatar={organization.avatar} size={2.5} orgName={organization.title} />
402-
</div>
406+
<div className="absolute inset-0 z-10 grid h-full w-full place-items-center bg-black/50 opacity-0 transition group-hover:opacity-100">
407+
<PencilSquareIcon className="size-5 text-text-bright" />
408+
</div>
409+
</Link>
403410
<div className="space-y-0.5">
404411
<Paragraph variant="small/bright">{organization.title}</Paragraph>
405412
<div className="flex items-baseline gap-2">

0 commit comments

Comments
 (0)