mirror of
https://github.com/cpvalente/ontime.git
synced 2026-09-06 23:09:08 +00:00
refactor: improve context menu performance
- extract menu from rundown tree - lazy create actions
This commit is contained in:
committed by
Carlos Valente
parent
8e32314667
commit
1f8065143a
@@ -30,7 +30,7 @@ export default function RundownMilestone({ colour, cue, entryId, hasCursor, titl
|
||||
const selectedEvents = useEventSelection((state) => state.selectedEvents);
|
||||
const setSingleEntrySelection = useEventSelection((state) => state.setSingleEntrySelection);
|
||||
|
||||
const [onContextMenu] = useContextMenu<HTMLDivElement>([
|
||||
const [onContextMenu] = useContextMenu<HTMLDivElement>(() => [
|
||||
{
|
||||
type: 'item',
|
||||
label: 'Delete',
|
||||
|
||||
Reference in New Issue
Block a user