fix(spaces): move Spaces to the top of the settings navigation

Surface the space management page as the first settings entry, above Bank
accounts, so it is the primary option in the menu.
This commit is contained in:
Víctor Falcón 2026-07-09 15:33:04 +02:00
parent 5dca04dbba
commit c163e592d9
1 changed files with 10 additions and 10 deletions

View File

@ -37,6 +37,16 @@ const getNavItems = (
isDemoAccount: boolean,
spacesEnabled: boolean,
): (NavItem | NavSectionHeader | NavDivider)[] => [
...(spacesEnabled
? [
{
type: 'nav-item' as const,
title: 'Spaces',
href: spacesIndex(),
icon: null,
},
]
: []),
{
type: 'nav-item' as const,
title: 'Bank accounts',
@ -67,16 +77,6 @@ const getNavItems = (
href: labelsIndex(),
icon: null,
},
...(spacesEnabled
? [
{
type: 'nav-item' as const,
title: 'Spaces',
href: spacesIndex(),
icon: null,
},
]
: []),
{ type: 'divider' },
{
type: 'section-header',