🎥 Make videos programmatically with React
better naming
Patric Salvisberg846f93147168
diff --git a/packages/cli/src/editor/components/CurrentComposition.tsx b/packages/cli/src/editor/components/CurrentComposition.tsxindex d4c00d4b55..54668d5bfe 100644--- a/packages/cli/src/editor/components/CurrentComposition.tsx+++ b/packages/cli/src/editor/components/CurrentComposition.tsx@@ -56,13 +56,13 @@ export const CurrentComposition = () => {document.title = `${video.id} / ${window.remotion_projectName} - Remotion Preview`;}, [video]);- const renderStill = useCallback(() => {+ const openRenderModal = useCallback(() => {if (!video) {return null;}const renderButton = document.getElementById(- 'render-settings-button'+ 'render-modal-button') as HTMLDivElement;renderButton.click();@@ -73,14 +73,14 @@ export const CurrentComposition = () => {event: 'keydown',key: 'r',commandCtrlKey: false,- callback: renderStill,+ callback: openRenderModal,preventDefault: true,});return () => {binding.unregister();};- }, [keybindings, renderStill]);+ }, [keybindings, openRenderModal]);if (!video) {return <div style={container} />;diff --git a/packages/cli/src/editor/components/RenderToolbarIcon.tsx b/packages/cli/src/editor/components/RenderToolbarIcon.tsxindex 7674a03647..2e7f1c29c0 100644--- a/packages/cli/src/editor/components/RenderToolbarIcon.tsx+++ b/packages/cli/src/editor/components/RenderToolbarIcon.tsx@@ -58,7 +58,7 @@ export const RenderStillButton: React.FC = () => {return (<ControlButton- id="render-settings-button"+ id="render-modal-button"disabled={type !== 'connected'}title={tooltip}aria-label={tooltip}