🎥 Make videos programmatically with React
formatting
Rishi Raj Jain7b6bd9bf6e1c
diff --git a/packages/cli/src/editor/components/RenderModal/RenderModal.tsx b/packages/cli/src/editor/components/RenderModal/RenderModal.tsxindex 506ce0d432..ac0a2df560 100644--- a/packages/cli/src/editor/components/RenderModal/RenderModal.tsx+++ b/packages/cli/src/editor/components/RenderModal/RenderModal.tsx@@ -739,8 +739,9 @@ const RenderModal: React.FC<const listenToChanges = () => {if (window.remotion_unsavedProps) {notificationCenter.current?.addNotification({- id: 'random',- content: 'There are unsaved changes to the props. Do you want to leave?',+ id: new Date().toString(),+ content:+ 'There are unsaved changes to the props. Do you want to leave?',created: new Date().getMilliseconds(),duration: 1,});diff --git a/packages/cli/src/event-source.ts b/packages/cli/src/event-source.tsindex 7a8dc66d5b..0789b8bcf8 100644--- a/packages/cli/src/event-source.ts+++ b/packages/cli/src/event-source.ts@@ -37,8 +37,9 @@ export const openEventSource = () => {) {if (window.remotion_unsavedProps) {notificationCenter.current?.addNotification({- id: 'random',- content: 'There are unsaved changes to the props. Do you want to leave?',+ id: new Date().toString(),+ content:+ 'There are unsaved changes to the props. Do you want to leave?',created: new Date().getMilliseconds(),duration: 1,});diff --git a/packages/cli/src/preview-server/error-overlay/react-overlay/listen-to-runtime-errors.ts b/packages/cli/src/preview-server/error-overlay/react-overlay/listen-to-runtime-errors.tsindex 9d3ea61eba..90857de8f3 100644--- a/packages/cli/src/preview-server/error-overlay/react-overlay/listen-to-runtime-errors.ts+++ b/packages/cli/src/preview-server/error-overlay/react-overlay/listen-to-runtime-errors.ts@@ -76,7 +76,8 @@ const crashWithFrames = (crash: () => void) => (error: Error) => {if (window.remotion_unsavedProps) {notificationCenter.current?.addNotification({id: 'random',- content: 'There are unsaved changes to the props. Do you want to leave?',+ content:+ 'There are unsaved changes to the props. Do you want to leave?',created: new Date().getMilliseconds(),duration: 1,});diff --git a/packages/cli/src/preview-server/hot-middleware/process-update.ts b/packages/cli/src/preview-server/hot-middleware/process-update.tsindex b33b393877..ef6e6e1e13 100644--- a/packages/cli/src/preview-server/hot-middleware/process-update.ts+++ b/packages/cli/src/preview-server/hot-middleware/process-update.ts@@ -172,8 +172,9 @@ export const processUpdate = function ();if (window.remotion_unsavedProps) {notificationCenter.current?.addNotification({- id: 'random',- content: 'There are unsaved changes to the props. Do you want to leave?',+ id: new Date().toString(),+ content:+ 'There are unsaved changes to the props. Do you want to leave?',created: new Date().getMilliseconds(),duration: 1,});@@ -192,7 +193,8 @@ export const processUpdate = function (if (window.remotion_unsavedProps) {notificationCenter.current?.addNotification({id: 'random',- content: 'There are unsaved changes to the props. Do you want to leave?',+ content:+ 'There are unsaved changes to the props. Do you want to leave?',created: new Date().getMilliseconds(),duration: 1,});