Skip to content

Commit

Permalink
remove use less icon import
Browse files Browse the repository at this point in the history
  • Loading branch information
ch-liuzhide committed Dec 6, 2024
1 parent d2ffb87 commit 66705b0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions client/app/factory/list/components/BotCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ import {
useGetBotBoundRepos,
useGetBotRagTask,
} from '@/app/hooks/useBot';
import CloudIcon from '@/public/icons/CloudIcon';
import MinusCircleIcon from '@/public/icons/MinusCircleIcon';
import { TaskStatus } from '@/types/task';
import ErrorBadgeIcon from '@/public/icons/ErrorBadgeIcon';
import KnowledgeTaskCompleteIcon from '@/public/icons/CheckBadgeIcon';
Expand All @@ -38,7 +36,6 @@ declare type Bot = Tables<'bots'>;
const BotInfoIconList = (props: { bot: Bot }) => {
const { bot } = props;
const { data } = useGetBotBoundRepos(bot.id);
// 判断机器人是否被安装到组件上
const showHomeIcon = bot.domain_whitelist && bot.domain_whitelist.length > 0;
const showCartIcon = bot.public;
const showGithubIcon = data && Array.isArray(data) && data.length > 0;
Expand Down

0 comments on commit 66705b0

Please sign in to comment.