Add Profile tab to company nav

Visible to admin, manager, and accountant. Placed between
Integrations and Export so the broader-audience tab appears first.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-15 10:32:44 +07:00
parent 7d58a1a1c6
commit 504fbadec4
@@ -32,6 +32,9 @@
{ href: `/companies/${data.company.id}/integrations`, label: 'Integrations' }
]
: []),
...(data.companyRoles.some((r) => r === 'admin' || r === 'manager' || r === 'accountant')
? [{ href: `/companies/${data.company.id}/profile`, label: 'Profile' }]
: []),
...(data.companyRoles.includes('admin') || data.companyRoles.includes('accountant')
? [{ href: `/companies/${data.company.id}/export`, label: 'Export' }]
: []),