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
15 changes: 15 additions & 0 deletions src/components/layout/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,21 @@ export function Header({ className, isLoggedIn = false, isAdmin = false, userEma
<span>Account Settings</span>
</Link>

{/* Invites: the site is invite only; members hand these out (src/lib/invites.ts) */}
<Link
href="/invite-only"
onClick={handleUserMenuLinkClick}
data-testid="user-menu-invites-link"
className={cn(
'flex w-full items-center gap-3 px-4 py-2 text-left text-sm',
'text-text-secondary hover:bg-bg-hover hover:text-text-primary',
'transition-colors'
)}
>
<UsersIcon size={16} />
<span>Invites</span>
</Link>

{/* Admin console, admins only */}
{isAdmin ? (
<Link
Expand Down
Loading