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:
@@ -32,6 +32,9 @@
|
|||||||
{ href: `/companies/${data.company.id}/integrations`, label: 'Integrations' }
|
{ 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')
|
...(data.companyRoles.includes('admin') || data.companyRoles.includes('accountant')
|
||||||
? [{ href: `/companies/${data.company.id}/export`, label: 'Export' }]
|
? [{ href: `/companies/${data.company.id}/export`, label: 'Export' }]
|
||||||
: []),
|
: []),
|
||||||
|
|||||||
Reference in New Issue
Block a user