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:
parent
5dca04dbba
commit
c163e592d9
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in New Issue