🎥 Make videos programmatically with React
`@remotion/studio`: Remove noisy success notifications (#10303)
Jonny Burgerb41521184412
diff --git a/packages/studio/src/components/Timeline/TimelineEffectItem.tsx b/packages/studio/src/components/Timeline/TimelineEffectItem.tsxindex cc8347a13f..26f075498e 100644--- a/packages/studio/src/components/Timeline/TimelineEffectItem.tsx+++ b/packages/studio/src/components/Timeline/TimelineEffectItem.tsx@@ -188,9 +188,7 @@ export const TimelineEffectItem: React.FC<{effectIndex,},]);- if (result.success) {- showNotification('Removed effect from source file', 2000);- } else {+ if (!result.success) {showNotification(result.reason, 4000);}} catch (err) {diff --git a/packages/studio/src/components/Timeline/delete-selected-timeline-item.ts b/packages/studio/src/components/Timeline/delete-selected-timeline-item.tsindex fdcea0b5bf..0d9438c834 100644--- a/packages/studio/src/components/Timeline/delete-selected-timeline-item.ts+++ b/packages/studio/src/components/Timeline/delete-selected-timeline-item.ts@@ -118,15 +118,6 @@ const deleteEffects = ().then((result) => {if (result.success) {- const singleEffect = effects[0];- showNotification(- effects.length === 1 && singleEffect?.type === 'single-effect'- ? 'Removed effect from source file'- : effects.length === 1- ? 'Removed effects from source file'- : 'Removed effects from source files',- 2000,- );return true;}diff --git a/packages/studio/src/components/Timeline/get-sequence-context-menu-items.ts b/packages/studio/src/components/Timeline/get-sequence-context-menu-items.tsindex 4bb55701d7..406b9f82a6 100644--- a/packages/studio/src/components/Timeline/get-sequence-context-menu-items.ts+++ b/packages/studio/src/components/Timeline/get-sequence-context-menu-items.ts@@ -196,17 +196,12 @@ export const getSequenceContextMenuItems = ({return;}- navigator.clipboard- .writeText(contextForAgents)- .then(() => {- showNotification('Copied context for agents', 1000);- })- .catch((err) => {- showNotification(- `Could not copy to clipboard: ${(err as Error).message}`,- 1000,- );- });+ navigator.clipboard.writeText(contextForAgents).catch((err) => {+ showNotification(+ `Could not copy to clipboard: ${(err as Error).message}`,+ 1000,+ );+ });},quickSwitcherLabel: null,subMenu: null,