From d23f1ed782729e1cd19cdf2db19ef0e6fbc23c48 Mon Sep 17 00:00:00 2001 From: SaaS Frontend Date: Sat, 25 Jul 2026 13:11:04 +0800 Subject: [PATCH] fix(voices): remove duplicate filters and unused imports in Phase 2 - Remove duplicate inline Select filters (gender+language) now in VoiceFilterBar - Clean up 7 unused icon imports (moved to child components) - Remove unused Select and formatFileSize imports Signed-off-by: xiaoxia --- apps/web/src/pages/voices/VoiceLibrary.tsx | 34 +--------------------- 1 file changed, 1 insertion(+), 33 deletions(-) diff --git a/apps/web/src/pages/voices/VoiceLibrary.tsx b/apps/web/src/pages/voices/VoiceLibrary.tsx index fbfadc80c..7a7ea8d7b 100644 --- a/apps/web/src/pages/voices/VoiceLibrary.tsx +++ b/apps/web/src/pages/voices/VoiceLibrary.tsx @@ -11,21 +11,14 @@ import React, { useMemo, useState, useRef, useEffect, useCallback } from "react" import { useQuery, useMutation, useQueryClient } from "@tanstack/react-query" import { SoundOutlined, - PlayCircleOutlined, - PauseCircleOutlined, - SearchOutlined, PlusOutlined, RobotOutlined, UploadOutlined, AudioOutlined, - HeartOutlined, UserOutlined, - DeleteOutlined, - ReloadOutlined, - CloseCircleOutlined, } from "@ant-design/icons" import { Modal, Upload, message } from "antd" -import { Button, Select } from "@/components/ui" +import { Button } from "@/components/ui" import PageHead from "@/components/layout/PageHead" import { fetchPresetVoices, fetchVoices } from "@/api/voices" import { @@ -55,7 +48,6 @@ import { genderLabel, languageLabel, formatTime, - formatFileSize, } from "@/pages/voices/utils/format" import { getAudioDuration } from "@/pages/voices/utils/audio" import CloneModal from "@/components/voice/CloneModal" @@ -497,30 +489,6 @@ const VoiceLibrary: React.FC = () => { onGenderChange={setFilterGender} onLangChange={setFilterLang} /> - {presetLoading && (