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
23 changes: 14 additions & 9 deletions apps/web/components/Nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,20 @@ export function Nav() {
<div className="flex items-center gap-4 text-sm">
{user ? (
<>
{user.role === 'importer' ? (
<Link href="/app" className="text-foreground hover:text-accent">
Bond dashboard
</Link>
) : (
<Link href="/surety" className="text-foreground hover:text-accent">
Surety admin
</Link>
)}
<div className="flex flex-col items-start leading-tight">
{user.role === 'importer' ? (
<Link href="/app" className="text-foreground hover:text-accent">
Bond dashboard
</Link>
) : (
<Link href="/surety" className="text-foreground hover:text-accent">
Surety admin
</Link>
)}
<span className="text-[11px] text-muted sm:hidden max-w-[130px] truncate" title={user.email}>
{user.email}
</span>
</div>
<span className="hidden sm:inline text-muted">{user.email}</span>
<button
onClick={logout}
Expand Down
Loading