mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-21 06:59:09 +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;
|
] 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() {
|
export function useAppSettingsMenu() {
|
||||||
const { data } = useAppVersion();
|
const { data } = useAppVersion();
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ function RundownMenu({ allowNavigation }: RundownMenuProps) {
|
|||||||
type: 'item',
|
type: 'item',
|
||||||
label: 'Manage Rundowns...',
|
label: 'Manage Rundowns...',
|
||||||
icon: IoList,
|
icon: IoList,
|
||||||
onClick: () => setLocation('manage'),
|
onClick: () => setLocation('manage__rundowns'),
|
||||||
disabled: !allowNavigation,
|
disabled: !allowNavigation,
|
||||||
},
|
},
|
||||||
{ type: 'divider' },
|
{ type: 'divider' },
|
||||||
|
|||||||
Reference in New Issue
Block a user