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