From 4a77bf09d3fa95ee49485c60d4c5a282f9947583 Mon Sep 17 00:00:00 2001 From: sumona-banerjeee Date: Wed, 25 Feb 2026 11:51:55 +0530 Subject: [PATCH] Solved the issue for the uploading retrying section --- app/upload/page.tsx | 1 + components/upload-section.tsx | 1 - components/video-player-section.tsx | 1 - 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/upload/page.tsx b/app/upload/page.tsx index 2314ab8..fadb85d 100644 --- a/app/upload/page.tsx +++ b/app/upload/page.tsx @@ -24,6 +24,7 @@ const WS_URL = API_URL?.replace(/^https:\/\//, "wss://").replace(/^http:\/\//, " type DetectionType = "pothole-detection" | "sign-board-detection" | "pot-sign-detection" + export default function UploadPage() { const router = useRouter() const [session, setSession] = useState(null) diff --git a/components/upload-section.tsx b/components/upload-section.tsx index 8917233..07d5fa8 100644 --- a/components/upload-section.tsx +++ b/components/upload-section.tsx @@ -14,7 +14,6 @@ const API_URL = process.env.NEXT_PUBLIC_API_URL const WS_URL = API_URL?.replace(/^https:\/\//, "wss://").replace(/^http:\/\//, "ws://") - type UploadSectionProps = { onDetectionComplete: (data: DetectionData, videoId: string, file: File) => void onDetectionTypeChange: (type: DetectionType) => void diff --git a/components/video-player-section.tsx b/components/video-player-section.tsx index d1fd014..f1def10 100644 --- a/components/video-player-section.tsx +++ b/components/video-player-section.tsx @@ -16,7 +16,6 @@ import { DetectionData, DetectionType } from "@/lib/types" const API_URL = process.env.NEXT_PUBLIC_API_URL - type VideoPlayerSectionProps = { data: DetectionData videoId: string