mirror of
https://github.com/cpvalente/ontime.git
synced 2026-07-26 10:38:55 +00:00
refactor: link to settings section
This commit is contained in:
committed by
Carlos Valente
parent
773229ce4c
commit
aecf9575b1
@@ -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' },
|
||||
|
||||
Reference in New Issue
Block a user