mirror of
https://github.com/cpvalente/ontime.git
synced 2026-09-10 16:49:41 +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
@@ -109,7 +109,7 @@ export default function RundownEvent({
|
||||
const handleRef = useRef<null | HTMLSpanElement>(null);
|
||||
const [isVisible, setIsVisible] = useState(false);
|
||||
|
||||
const [onContextMenu] = useContextMenu<HTMLDivElement>(
|
||||
const [onContextMenu] = useContextMenu<HTMLDivElement>(() =>
|
||||
selectedEvents.size > 1
|
||||
? [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user