feat(shell): add NotificationBell to header
This commit is contained in:
parent
27b61415a6
commit
b5548abf37
1 changed files with 7 additions and 3 deletions
|
|
@ -5,6 +5,7 @@ import Link from 'next/link';
|
||||||
import { usePathname, useRouter } from 'next/navigation';
|
import { usePathname, useRouter } from 'next/navigation';
|
||||||
import { useSession } from './session-provider';
|
import { useSession } from './session-provider';
|
||||||
import { TenantSwitcher } from './tenant-switcher';
|
import { TenantSwitcher } from './tenant-switcher';
|
||||||
|
import { NotificationBell } from './notification-bell';
|
||||||
import { NavIcon } from './nav-icon';
|
import { NavIcon } from './nav-icon';
|
||||||
import { STAGE_LABEL, countByStatus, visibleSections, type Role } from '../lib/navigation';
|
import { STAGE_LABEL, countByStatus, visibleSections, type Role } from '../lib/navigation';
|
||||||
|
|
||||||
|
|
@ -144,9 +145,12 @@ export function DashboardShell({ children }: { children: React.ReactNode }) {
|
||||||
<div className="flex flex-1 flex-col">
|
<div className="flex flex-1 flex-col">
|
||||||
<header className="flex h-16 items-center justify-between border-b border-ink-line px-6">
|
<header className="flex h-16 items-center justify-between border-b border-ink-line px-6">
|
||||||
<TenantSwitcher />
|
<TenantSwitcher />
|
||||||
<span className="rounded-full bg-paper-sunken px-2.5 py-1 text-xs font-medium capitalize text-ink-soft">
|
<div className="flex items-center gap-3">
|
||||||
{activeTenant.role}
|
<NotificationBell tenantId={activeTenant.tenantId} />
|
||||||
</span>
|
<span className="rounded-full bg-paper-sunken px-2.5 py-1 text-xs font-medium capitalize text-ink-soft">
|
||||||
|
{activeTenant.role}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
</header>
|
</header>
|
||||||
<main className="flex-1 overflow-y-auto p-6">{children}</main>
|
<main className="flex-1 overflow-y-auto p-6">{children}</main>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue