refactor: improve context menu performance

- extract menu from rundown tree
- lazy create actions
This commit is contained in:
Carlos Valente
2026-01-06 17:07:01 +01:00
committed by Carlos Valente
parent 8e32314667
commit 1f8065143a
6 changed files with 24 additions and 26 deletions
@@ -44,9 +44,8 @@ function RundownExport() {
<ViewNavigationMenu suppressSettings />
<div className={style.rundown}>
<ErrorBoundary>
<RundownContextMenu>
<RundownWrapper isSmallDevice viewMode={viewMode} setViewMode={setViewMode} />
</RundownContextMenu>
<RundownWrapper isSmallDevice viewMode={viewMode} setViewMode={setViewMode} />
<RundownContextMenu />
</ErrorBoundary>
</div>
</div>
@@ -65,9 +64,8 @@ function RundownExport() {
<Editor.Panel className={style.list}>
<ErrorBoundary>
{!isExtracted && <Editor.CornerExtract onClick={(event) => handleLinks('rundown', event)} />}
<RundownContextMenu>
<RundownWrapper viewMode={viewMode} setViewMode={setViewMode} />
</RundownContextMenu>
<RundownWrapper viewMode={viewMode} setViewMode={setViewMode} />
<RundownContextMenu />
</ErrorBoundary>
</Editor.Panel>
{!hideSideBar && (