Skip to content

🎥 Make videos programmatically with React

@remotion/studio: Move install package menu (#7833)

Jonny Burger6b0325c2b26c
diff --git a/packages/studio/src/components/Menu/MenuItem.tsx b/packages/studio/src/components/Menu/MenuItem.tsx
index 1f0c336c6c..8b919b0b09 100644
--- a/packages/studio/src/components/Menu/MenuItem.tsx
+++ b/packages/studio/src/components/Menu/MenuItem.tsx
@@ -28,7 +28,6 @@ export type MenuId =
| 'file'
| 'view'
| 'composition'
- | 'install'
| 'tools'
| 'help';
diff --git a/packages/studio/src/helpers/use-menu-structure.tsx b/packages/studio/src/helpers/use-menu-structure.tsx
index 8eabf4fe24..d49029a6fa 100644
--- a/packages/studio/src/helpers/use-menu-structure.tsx
+++ b/packages/studio/src/helpers/use-menu-structure.tsx
@@ -761,20 +761,12 @@ export const useMenuStructure = (
type: 'item' as const,
quickSwitcherLabel: 'Open spring() Editor',
},
- ].filter(Internals.truthy),
- quickSwitcherLabel: null,
- },
- readOnlyStudio || remotion_packageManager === 'unknown'
- ? null
- : {
- id: 'install' as const,
- label: 'Packages',
- leaveLeftPadding: false,
- items: [
- {
+ readOnlyStudio || remotion_packageManager === 'unknown'
+ ? null
+ : {
id: 'install-packages',
value: 'install-packages',
- label: 'Install...',
+ label: 'Install package',
onClick: () => {
closeMenu();
setSelectedModal({
@@ -786,10 +778,11 @@ export const useMenuStructure = (
keyHint: null,
leftItem: null,
subMenu: null,
- quickSwitcherLabel: `Install packages`,
+ quickSwitcherLabel: `Install package`,
},
- ],
- },
+ ].filter(Internals.truthy),
+ quickSwitcherLabel: null,
+ },
{
id: 'help' as const,
label: 'Help',