From a3a75973aacee0198c13a935ab3f4c432badfa81 Mon Sep 17 00:00:00 2001 From: imeepos Date: Mon, 14 Jul 2025 18:32:58 +0800 Subject: [PATCH] fix: build error --- apps/desktop/src/components/VideoClassificationProgress.tsx | 2 +- apps/desktop/src/pages/ProjectDetails.tsx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/desktop/src/components/VideoClassificationProgress.tsx b/apps/desktop/src/components/VideoClassificationProgress.tsx index 0293792..854900a 100644 --- a/apps/desktop/src/components/VideoClassificationProgress.tsx +++ b/apps/desktop/src/components/VideoClassificationProgress.tsx @@ -1,4 +1,4 @@ -import React, { useEffect, useState, useCallback, useMemo } from 'react'; +import React, { useEffect, useState, useCallback } from 'react'; import { Brain, Clock, CheckCircle, XCircle, AlertCircle, Pause, Play, Square, TrendingUp, BarChart3, Eye, Star, Target diff --git a/apps/desktop/src/pages/ProjectDetails.tsx b/apps/desktop/src/pages/ProjectDetails.tsx index a33f54e..829e359 100644 --- a/apps/desktop/src/pages/ProjectDetails.tsx +++ b/apps/desktop/src/pages/ProjectDetails.tsx @@ -1,6 +1,6 @@ import React, { useEffect, useState } from 'react'; import { useParams, useNavigate } from 'react-router-dom'; -import { ArrowLeft, FolderOpen, Settings, Upload, FileVideo, FileAudio, FileImage, HardDrive, Brain, Loader2 } from 'lucide-react'; +import { ArrowLeft, FolderOpen, Upload, FileVideo, FileAudio, FileImage, HardDrive, Brain, Loader2 } from 'lucide-react'; import { useProjectStore } from '../store/projectStore'; import { useMaterialStore } from '../store/materialStore'; import { useVideoClassificationStore } from '../store/videoClassificationStore'; @@ -33,14 +33,14 @@ export const ProjectDetails: React.FC = () => { const { startProjectBatchClassification, isLoading: classificationLoading, - error: classificationError, + error: _classificationError, queueStats, getProjectQueueStatus } = useVideoClassificationStore(); const [project, setProject] = useState(null); const [showImportDialog, setShowImportDialog] = useState(false); const [activeTab, setActiveTab] = useState<'materials' | 'debug' | 'ai-logs'>('materials'); - const [batchClassificationResult, setBatchClassificationResult] = useState(null); + const [_batchClassificationResult, setBatchClassificationResult] = useState(null); // 加载项目详情 useEffect(() => {