refactor: link to settings section

This commit is contained in:
Carlos Valente
2026-02-08 10:19:44 +01:00
committed by Carlos Valente
parent 773229ce4c
commit aecf9575b1
2 changed files with 5 additions and 2 deletions
@@ -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();
@@ -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' },