zlwu 10 месяцев назад
Родитель
Сommit
eb116895db

+ 1 - 1
frontend/src/components/ProgressRingCanvas.tsx

@@ -67,7 +67,7 @@ const interpolateColor = (color1: string, color2: string, t: number): string =>
 };
 
 export const ProgressRingCanvas = forwardRef<ProgressRingCanvasHandle, ProgressRingCanvasProps>(
-  ({ progress, width = 114, height = 114 }, ref) => {
+  ({ progress }, ref) => {
     const canvasRef = useRef<HTMLCanvasElement>(null);
     const containerRef = useRef<HTMLDivElement>(null);
     const [actualSize, setActualSize] = useState({ width: 114, height: 114 });

+ 1 - 1
frontend/src/pages/BeginPage.tsx

@@ -6,7 +6,7 @@ import { setStorage, STORAGE_KEYS, markRouteVisited, getVisitedRoutes, getUserId
 import { updateUserUIState, createUser, getUserInfo } from '@/utils/api';
 import 'video.js/dist/video-js.css';
 import { getOssUrl } from '@/utils/oss';
-import { px2vmin, px2vh } from '@/utils/viewport';
+import { px2vmin } from '@/utils/viewport';
 import { UserAgreementModal } from '@/components/UserAgreementModal';
 import { PrivacyPolicyModal } from '@/components/PrivacyPolicyModal';
 

+ 0 - 1
frontend/src/pages/ChatBotPage.tsx

@@ -39,7 +39,6 @@ const audioButton = getOssUrl('audio-button.png');
 const avatarHint = getOssUrl('Avatar-hint.png');
 const microphoneIcon = getOssUrl('microphone-icon.svg');
 const progressRing = getOssUrl('progress-ring.svg');
-const progressFull = getOssUrl('progress-full.svg');
 const tapToChat = getOssUrl('TapToChat.svg');
 const cancelIcon = getOssUrl('cancel-icon.svg');
 const sendIcon = getOssUrl('send-icon.svg');