Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions web/app/(dashboard)/layout-client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@ import {
import { Toaster } from "@/components/ui/sonner";
import { signOut, useSession } from "@/lib/auth-client";

function DashboardHeader({ email }: { email: string }) {
function DashboardHeader({
email,
name,
}: {
email: string;
name: string;
}) {
const router = useRouter();
const breadcrumbs = useBreadcrumbs();
const getBreadcrumbKey = (
Expand Down Expand Up @@ -115,7 +121,12 @@ function DashboardHeader({ email }: { email: string }) {
</DropdownMenuTrigger>
<DropdownMenuContent align="end" sideOffset={8}>
<DropdownMenuGroup>
<DropdownMenuLabel>{email}</DropdownMenuLabel>
<DropdownMenuLabel>
<span className="block font-medium">{name}</span>
<span className="block truncate text-xs font-normal text-muted-foreground">
{email}
</span>
</DropdownMenuLabel>
</DropdownMenuGroup>
<DropdownMenuSeparator />
<DropdownMenuItem
Expand Down Expand Up @@ -166,7 +177,10 @@ export function DashboardLayoutClient({
return (
<BreadcrumbDataProvider>
<div className="min-h-screen">
<DashboardHeader email={session.user.email} />
<DashboardHeader
email={session.user.email}
name={session.user.name}
/>
<OfflineServersBanner />
<main>{children}</main>
<Toaster />
Expand Down
Loading