From 5c228bca4fd13f33ad2b64ca10bfa8aa3221ecf5 Mon Sep 17 00:00:00 2001 From: twwu Date: Fri, 13 Jun 2025 15:02:31 +0800 Subject: [PATCH] feat: replace TypeIcon with AppIcon in SelectDataSet component for improved icon display --- .../dataset-config/select-dataset/index.tsx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/web/app/components/app/configuration/dataset-config/select-dataset/index.tsx b/web/app/components/app/configuration/dataset-config/select-dataset/index.tsx index ffdb714f08..99dc32dfa2 100644 --- a/web/app/components/app/configuration/dataset-config/select-dataset/index.tsx +++ b/web/app/components/app/configuration/dataset-config/select-dataset/index.tsx @@ -5,7 +5,6 @@ import { useGetState, useInfiniteScroll } from 'ahooks' import { useTranslation } from 'react-i18next' import Link from 'next/link' import produce from 'immer' -import TypeIcon from '../type-icon' import Modal from '@/app/components/base/modal' import type { DataSet } from '@/models/datasets' import Button from '@/app/components/base/button' @@ -15,6 +14,7 @@ import Badge from '@/app/components/base/badge' import { useKnowledge } from '@/hooks/use-knowledge' import cn from '@/utils/classnames' import { basePath } from '@/utils/var' +import AppIcon from '@/app/components/base/app-icon' export type ISelectDataSetProps = { isShow: boolean @@ -91,6 +91,7 @@ const SelectDataSet: FC = ({ const handleSelect = () => { onSelect(selected) } + return ( = ({ >
- +
{item.name}
{!item.embedding_available && (