Skip to content

Open source CapCut alternative.

TypeScript

fix(site): hide the empty project inspector

David Le5a5960e8bbf9
diff --git a/site/src/cut/components/Inspector.tsx b/site/src/cut/components/Inspector.tsx
index bd9b57f8..58cee832 100644
--- a/site/src/cut/components/Inspector.tsx
+++ b/site/src/cut/components/Inspector.tsx
@@ -72,9 +72,7 @@ export function Inspector() {
<AudioPanel clip={audio} />
) : overlay ? (
<TextPanel overlay={overlay} />
- ) : (
- <ProjectPanel />
- )}
+ ) : null}
</aside>
);
}
@@ -100,14 +98,6 @@ const Value = ({ children, className }: { children: React.ReactNode; className?:
<span className={cn("font-mono text-[11.5px] tabular-nums", className)}>{children}</span>
);
-function ProjectPanel() {
- return (
- <>
- <PanelTitle>Project</PanelTitle>
- </>
- );
-}
-
function ClipPanel({ clip }: { clip: VideoClip }) {
const asset = useEditor((s) => s.assets.find((a) => a.id === clip.assetId));
const updateClip = useEditor((s) => s.updateClip);