Skip to content

🎥 Make videos programmatically with React

remove native

Jonny Burger72ce76f8ba06
diff --git a/packages/cli/file2clip.exe b/packages/cli/file2clip.exe
deleted file mode 100644
index bc615b9a44..0000000000
Binary files a/packages/cli/file2clip.exe and /dev/null differ
diff --git a/packages/cli/osx-copy-image b/packages/cli/osx-copy-image
deleted file mode 100755
index c2f641008f..0000000000
Binary files a/packages/cli/osx-copy-image and /dev/null differ
diff --git a/packages/cli/src/editor/components/RenderQueue/RenderQueueCopyToClipboard.tsx b/packages/cli/src/editor/components/RenderQueue/RenderQueueCopyToClipboard.tsx
index ebdae97a6a..b484707a24 100644
--- a/packages/cli/src/editor/components/RenderQueue/RenderQueueCopyToClipboard.tsx
+++ b/packages/cli/src/editor/components/RenderQueue/RenderQueueCopyToClipboard.tsx
@@ -3,7 +3,10 @@ import type {RenderJob} from '../../../preview-server/render-queue/job';
import {ClipboardIcon} from '../../icons/clipboard';
import type {RenderInlineAction} from '../InlineAction';
import {InlineAction} from '../InlineAction';
-import {sendErrorNotification} from '../Notifications/NotificationCenter';
+import {
+ notificationCenter,
+ sendErrorNotification,
+} from '../Notifications/NotificationCenter';
import {copyToClipboard} from './actions';
const revealIconStyle: React.CSSProperties = {
@@ -19,9 +22,18 @@ export const RenderQueueCopyToClipboard: React.FC<{job: RenderJob}> = ({
}, []);
const onClick = useCallback(() => {
- copyToClipboard({outName: job.outName}).catch((err) => {
- sendErrorNotification(`Could not copy to clipboard: ${err.message}`);
- });
+ copyToClipboard({outName: job.outName})
+ .catch((err) => {
+ sendErrorNotification(`Could not copy to clipboard: ${err.message}`);
+ })
+ .then(() => {
+ notificationCenter.current?.addNotification({
+ content: 'Copied to clipboard',
+ created: Date.now(),
+ duration: 1000,
+ id: String(Math.random()),
+ });
+ });
}, [job.outName]);
return (