From c163e592d9df29acb6a8439781c52acb101a7958 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vi=CC=81ctor=20Falco=CC=81n?= Date: Thu, 9 Jul 2026 15:33:04 +0200 Subject: [PATCH] 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. --- resources/js/layouts/settings/layout.tsx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/resources/js/layouts/settings/layout.tsx b/resources/js/layouts/settings/layout.tsx index 579919d9..f6dab15a 100644 --- a/resources/js/layouts/settings/layout.tsx +++ b/resources/js/layouts/settings/layout.tsx @@ -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',