From 2f3a148dd4808a69619758b8640110b1aa859217 Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Wed, 25 Jun 2025 23:22:59 +0200 Subject: refactor: move debug component to separate component and place absolutely --- apps/web/src/components/editor/preview-panel.tsx | 44 ------------------------ 1 file changed, 44 deletions(-) (limited to 'apps/web/src/components/editor') diff --git a/apps/web/src/components/editor/preview-panel.tsx b/apps/web/src/components/editor/preview-panel.tsx index 5ee57487..b68e5aa6 100644 --- a/apps/web/src/components/editor/preview-panel.tsx +++ b/apps/web/src/components/editor/preview-panel.tsx @@ -12,9 +12,6 @@ import { Button } from "@/components/ui/button"; import { Play, Pause, Volume2, VolumeX } from "lucide-react"; import { useState, useRef, useEffect } from "react"; -// Debug flag - set to false to hide active clips info -const SHOW_DEBUG_INFO = process.env.NODE_ENV === "development"; - interface ActiveClip { clip: TimelineClip; track: TimelineTrack; @@ -27,7 +24,6 @@ export function PreviewPanel() { const { isPlaying, toggle, currentTime, muted, toggleMute, volume } = usePlaybackStore(); const [canvasSize, setCanvasSize] = useState({ width: 1920, height: 1080 }); - const [showDebug, setShowDebug] = useState(SHOW_DEBUG_INFO); const previewRef = useRef(null); const containerRef = useRef(null); const [previewDimensions, setPreviewDimensions] = useState({ @@ -197,18 +193,6 @@ export function PreviewPanel() { ))} - {/* Debug Toggle - Only show in development */} - {SHOW_DEBUG_INFO && ( - - )} -