diff --git a/attached_assets/image_1756402192466.png b/attached_assets/image_1756402192466.png deleted file mode 100644 index 93c3c3a..0000000 Binary files a/attached_assets/image_1756402192466.png and /dev/null differ diff --git a/attached_assets/image_1756402488410.png b/attached_assets/image_1756402488410.png deleted file mode 100644 index 204a0d8..0000000 Binary files a/attached_assets/image_1756402488410.png and /dev/null differ diff --git a/client/src/pages/VideoPage.tsx b/client/src/pages/VideoPage.tsx index 7806204..1375b57 100644 --- a/client/src/pages/VideoPage.tsx +++ b/client/src/pages/VideoPage.tsx @@ -5,8 +5,7 @@ import { type Video } from "@shared/schema"; import go4LogoPath from "@assets/go4_1756394900352.png"; // Helper functions -const formatViews = (views: number | undefined): string => { - if (!views) return '0'; +const formatViews = (views: number): string => { if (views >= 1000000) return `${(views / 1000000).toFixed(1)}M`; if (views >= 1000) return `${(views / 1000).toFixed(1)}K`; return views.toString(); @@ -32,9 +31,7 @@ const formatDate = (date: Date | string): string => { }); }; import { Button } from "@/components/ui/button"; -import { Input } from "@/components/ui/input"; -import { Share2, X, Edit3, Search } from "lucide-react"; -import Hls from "hls.js"; +import { Share2, X, Edit3 } from "lucide-react"; import { apiRequest } from "@/lib/queryClient"; import { FacebookShareButton, @@ -55,7 +52,6 @@ export default function VideoPage() { const [, params] = useRoute("/video/:id"); const videoId = params?.id; const [showShareMenu, setShowShareMenu] = useState(false); - const [sidebarSearchQuery, setSidebarSearchQuery] = useState(""); // Fetch current video const { data: currentVideo, isLoading: videoLoading } = useQuery