Skip to content

Commit 69cce6b

Browse files
committed
chore: add avatar next to organization name
1 parent a8e0bea commit 69cce6b

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

site/src/components/Breadcrumb/Breadcrumb.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export const BreadcrumbPage = forwardRef<
7676
<span
7777
ref={ref}
7878
aria-current="page"
79-
className={cn("text-content-secondary", className)}
79+
className={cn("flex items-center gap-2 text-content-secondary", className)}
8080
{...props}
8181
/>
8282
));

site/src/modules/management/OrganizationSettingsLayout.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import { useDashboard } from "modules/dashboard/useDashboard";
1414
import { type FC, Suspense, createContext, useContext } from "react";
1515
import { Outlet, useParams } from "react-router-dom";
1616
import { OrganizationSidebar } from "./OrganizationSidebar";
17+
import { UserAvatar } from "components/UserAvatar/UserAvatar";
1718

1819
export const OrganizationSettingsContext = createContext<
1920
OrganizationSettingsValue | undefined
@@ -89,6 +90,12 @@ const OrganizationSettingsLayout: FC = () => {
8990
<BreadcrumbSeparator />
9091
<BreadcrumbItem>
9192
<BreadcrumbPage className="text-content-primary">
93+
<UserAvatar
94+
key={organization.id}
95+
size="xs"
96+
username={organization.display_name}
97+
avatarURL={organization.icon}
98+
/>
9299
{organization?.name}
93100
</BreadcrumbPage>
94101
</BreadcrumbItem>

0 commit comments

Comments
 (0)