From aecf9575b16942ee8deb5b880d3a0bc8b367d1f3 Mon Sep 17 00:00:00 2001 From: Carlos Valente Date: Sun, 8 Feb 2026 10:19:44 +0100 Subject: [PATCH] refactor: link to settings section --- apps/client/src/features/app-settings/useAppSettingsMenu.tsx | 5 ++++- .../src/features/rundown/rundown-header/RundownMenu.tsx | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/client/src/features/app-settings/useAppSettingsMenu.tsx b/apps/client/src/features/app-settings/useAppSettingsMenu.tsx index 7a19e3eaa..a3527008a 100644 --- a/apps/client/src/features/app-settings/useAppSettingsMenu.tsx +++ b/apps/client/src/features/app-settings/useAppSettingsMenu.tsx @@ -90,7 +90,10 @@ const staticOptions = [ }, ] as const; -export type SettingsOptionId = (typeof staticOptions)[number]['id']; +// a child of navigation or a child of secondary navigation +export type SettingsOptionId = + | (typeof staticOptions)[number]['id'] + | Extract<(typeof staticOptions)[number], { secondary: object }>['secondary'][number]['id']; export function useAppSettingsMenu() { const { data } = useAppVersion(); diff --git a/apps/client/src/features/rundown/rundown-header/RundownMenu.tsx b/apps/client/src/features/rundown/rundown-header/RundownMenu.tsx index e1db819fb..f48bd1c43 100644 --- a/apps/client/src/features/rundown/rundown-header/RundownMenu.tsx +++ b/apps/client/src/features/rundown/rundown-header/RundownMenu.tsx @@ -41,7 +41,7 @@ function RundownMenu({ allowNavigation }: RundownMenuProps) { type: 'item', label: 'Manage Rundowns...', icon: IoList, - onClick: () => setLocation('manage'), + onClick: () => setLocation('manage__rundowns'), disabled: !allowNavigation, }, { type: 'divider' },