Skip to content

🎥 Make videos programmatically with React

fix(editor): use different ids for each menu divider

Arthur Denner67ca60b8557e
diff --git a/packages/cli/src/editor/helpers/use-menu-structure.tsx b/packages/cli/src/editor/helpers/use-menu-structure.tsx
index d23b0a6c9e..c205cd5242 100644
--- a/packages/cli/src/editor/helpers/use-menu-structure.tsx
+++ b/packages/cli/src/editor/helpers/use-menu-structure.tsx
@@ -194,7 +194,7 @@ export const useMenuStructure = (closeMenu: () => void) => {
quickSwitcherLabel: null,
},
{
- id: 'timeline-divider',
+ id: 'timeline-divider-1',
type: 'divider' as const,
},
{
@@ -260,7 +260,7 @@ export const useMenuStructure = (closeMenu: () => void) => {
onClick: () => undefined,
},
{
- id: 'timeline-divider',
+ id: 'timeline-divider-2',
type: 'divider' as const,
},
{
@@ -280,7 +280,7 @@ export const useMenuStructure = (closeMenu: () => void) => {
: 'Enable Checkerboard Transparency',
},
{
- id: 'timeline-divider',
+ id: 'timeline-divider-3',
type: 'divider' as const,
},
{
@@ -328,7 +328,7 @@ export const useMenuStructure = (closeMenu: () => void) => {
quickSwitcherLabel: 'Timeline: Collapse all layers',
},
{
- id: 'in-out-divider',
+ id: 'in-out-divider-4',
type: 'divider' as const,
},
{
@@ -350,7 +350,7 @@ export const useMenuStructure = (closeMenu: () => void) => {
quickSwitcherLabel: 'Switch composition',
},
{
- id: 'in-out-divider',
+ id: 'in-out-divider-5',
type: 'divider' as const,
},
{
@@ -491,7 +491,7 @@ export const useMenuStructure = (closeMenu: () => void) => {
quickSwitcherLabel: null,
},
{
- id: 'help-divider',
+ id: 'help-divider-6',
type: 'divider' as const,
},
{