Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

💄 style(project): use a folder icon for project entries (#18544)

Arvin Xu097c0a2e2981
diff --git a/src/features/HomeSidebar/Body/Project/ProjectItem.tsx b/src/features/HomeSidebar/Body/Project/ProjectItem.tsx
index c28c31ee413..7009b9f8887 100644
--- a/src/features/HomeSidebar/Body/Project/ProjectItem.tsx
+++ b/src/features/HomeSidebar/Body/Project/ProjectItem.tsx
@@ -3,7 +3,7 @@
import type { MenuProps } from '@lobehub/ui';
import { ActionIcon, DropdownMenu, Icon } from '@lobehub/ui';
import { confirmModal, toast } from '@lobehub/ui/base-ui';
-import { MoreHorizontalIcon, PencilIcon, SquareKanbanIcon, TrashIcon } from 'lucide-react';
+import { FolderClosedIcon, MoreHorizontalIcon, PencilIcon, TrashIcon } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
@@ -70,7 +70,7 @@ const ProjectItem = memo<ProjectItemProps>(({ project }) => {
<NavItem
contextMenuItems={canManage ? menuItems : undefined}
disabled={deleting}
- icon={project.avatar || SquareKanbanIcon}
+ icon={project.avatar || FolderClosedIcon}
title={project.name}
actions={
canManage ? (
diff --git a/src/features/Projects/List/index.tsx b/src/features/Projects/List/index.tsx
index ff877a67156..108642f8eb8 100644
--- a/src/features/Projects/List/index.tsx
+++ b/src/features/Projects/List/index.tsx
@@ -15,10 +15,10 @@ import { Button, confirmModal, type DropdownItem, DropdownMenu, toast } from '@l
import { createStaticStyles } from 'antd-style';
import dayjs from 'dayjs';
import {
+ FolderClosedIcon,
MoreHorizontalIcon,
PlusIcon,
SearchXIcon,
- SquareKanbanIcon,
TrashIcon,
} from 'lucide-react';
import { memo, useMemo, useState } from 'react';
@@ -244,7 +244,7 @@ const ProjectListPage = memo(() => {
<Center flex={1} padding={48}>
<Empty
description={keyword.trim() ? t('list.searchEmpty') : t('list.emptyDescription')}
- icon={keyword.trim() ? SearchXIcon : SquareKanbanIcon}
+ icon={keyword.trim() ? SearchXIcon : FolderClosedIcon}
/>
</Center>
) : (
diff --git a/src/features/Projects/routeMeta.ts b/src/features/Projects/routeMeta.ts
index 22715268127..ff5863d4ada 100644
--- a/src/features/Projects/routeMeta.ts
+++ b/src/features/Projects/routeMeta.ts
@@ -1,8 +1,8 @@
-import { SquareKanbanIcon } from 'lucide-react';
+import { FolderClosedIcon } from 'lucide-react';
import { routeMeta } from '@/spa/router/routeMeta';
export const projectsRouteMeta = routeMeta({
- icon: SquareKanbanIcon,
+ icon: FolderClosedIcon,
titleKey: 'navigation.projects',
});