Skip to content

🎥 Make videos programmatically with React

Update CopyHint.tsx

Jonny Burger405534ac39ff
diff --git a/packages/cli/src/editor/components/NewComposition/CopyHint.tsx b/packages/cli/src/editor/components/NewComposition/CopyHint.tsx
index 72ebb2f50e..4bc1873a1b 100644
--- a/packages/cli/src/editor/components/NewComposition/CopyHint.tsx
+++ b/packages/cli/src/editor/components/NewComposition/CopyHint.tsx
@@ -17,18 +17,22 @@ export const CopyHint: React.FC = () => {
setProjectInfo(res);
})
.catch((err) => {
- console.log('Error fetching info about the project');
+ console.log('Error fetching info about the project', err);
setProjectInfo(null);
});
}, []);
- if (!projectInfo) {
+ if (!projectInfo || !projectInfo.videoFile) {
return null;
}
return (
<div style={style}>
- Copy this into <br /> your {projectInfo.relativeVideoFile} file.
+ Copy this into <br /> your{' '}
+ <span title={projectInfo.videoFile as string}>
+ {projectInfo.relativeVideoFile}
+ </span>{' '}
+ file.
</div>
);
};