refactor: remove unused icon components and update imports in dataset components

This commit is contained in:
twwu
2025-05-08 11:15:27 +08:00
parent 3d11af2dd6
commit 38f1a42ce8
14 changed files with 11 additions and 156 deletions

View File

@ -15,7 +15,7 @@ import {
} from '@/app/components/base/portal-to-follow-elem'
import cn from '@/utils/classnames'
import SearchInput from '@/app/components/base/search-input'
import { GeneralType, ParentChildType } from '@/app/components/base/icons/src/vender/knowledge'
import { GeneralChunk, ParentChildChunk } from '@/app/components/base/icons/src/vender/knowledge'
import { useDocumentList } from '@/service/knowledge/use-document'
import Loading from '@/app/components/base/loading'
@ -54,7 +54,7 @@ const DocumentPicker: FC<Props> = ({
})
const documentsList = data?.data
const isParentChild = processMode === ProcessMode.parentChild
const TypeIcon = isParentChild ? ParentChildType : GeneralType
const TypeIcon = isParentChild ? ParentChildChunk : GeneralChunk
const [open, {
set: setOpen,