Skip to content

🎥 Make videos programmatically with React

chore: make `color` on `FileIcon` optional w a fallback

Mohit Yadavb014f0a89819
diff --git a/packages/cli/src/editor/components/RenderModal/RenderModal.tsx b/packages/cli/src/editor/components/RenderModal/RenderModal.tsx
index a16cb9b8aa..9ccd90decb 100644
--- a/packages/cli/src/editor/components/RenderModal/RenderModal.tsx
+++ b/packages/cli/src/editor/components/RenderModal/RenderModal.tsx
@@ -919,7 +919,7 @@ const RenderModal: React.FC<
onClick={() => setTab('general')}
>
<div style={iconContainer}>
- <FileIcon color="currentColor" style={icon} />
+ <FileIcon style={icon} />
</div>
General
</VerticalTab>
diff --git a/packages/cli/src/editor/icons/file.tsx b/packages/cli/src/editor/icons/file.tsx
index ed99dab9a2..c635f02a6b 100644
--- a/packages/cli/src/editor/icons/file.tsx
+++ b/packages/cli/src/editor/icons/file.tsx
@@ -1,6 +1,6 @@
import type {SVGProps} from 'react';
-export const FileIcon: React.FC<SVGProps<SVGSVGElement> & {color: string}> = ({
+export const FileIcon: React.FC<SVGProps<SVGSVGElement> & {color?: string}> = ({
color,
...props
}) => (