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.

chore: bump lucide-react to v1.8.0 (#13703)

Inneicd49e989364c
diff --git a/package.json b/package.json
index 157ce5246b8..ebf3cec34b4 100644
--- a/package.json
+++ b/package.json
@@ -343,7 +343,7 @@
"langfuse": "^3.38.6",
"langfuse-core": "^3.38.6",
"lexical": "0.42.0",
- "lucide-react": "^0.577.0",
+ "lucide-react": "^1.8.0",
"mammoth": "^1.11.0",
"marked": "^17.0.1",
"mdast-util-to-markdown": "^2.1.2",
diff --git a/src/features/CommandMenu/MainMenu.tsx b/src/features/CommandMenu/MainMenu.tsx
index bef8a124117..3a02fdb5abd 100644
--- a/src/features/CommandMenu/MainMenu.tsx
+++ b/src/features/CommandMenu/MainMenu.tsx
@@ -1,11 +1,10 @@
import { SOCIAL_URL } from '@lobechat/business-const';
-import { DiscordIcon } from '@lobehub/ui/icons';
+import { DiscordIcon, GithubIcon } from '@lobehub/ui/icons';
import { Command } from 'cmdk';
import {
Bot,
FeatherIcon,
FilePen,
- Github,
LibraryBig,
MessageSquarePlusIcon,
Monitor,
@@ -145,7 +144,7 @@ const MainMenu = memo(() => {
{t('cmdk.contactUs')}
</CommandItem>
<CommandItem
- icon={<Github />}
+ icon={<GithubIcon />}
keywords={t('cmdk.keywords.submitIssue').split(' ')}
value="submit-issue"
onSelect={() => handleExternalLink(FEEDBACK)}
diff --git a/src/features/SkillStore/SkillList/AddSkillButton.tsx b/src/features/SkillStore/SkillList/AddSkillButton.tsx
index e62c7eafdc2..4ccb722489c 100644
--- a/src/features/SkillStore/SkillList/AddSkillButton.tsx
+++ b/src/features/SkillStore/SkillList/AddSkillButton.tsx
@@ -1,5 +1,6 @@
import { Button, DropdownMenu, Flexbox, Icon, Text } from '@lobehub/ui';
-import { ChevronDown, FileArchive, Github, Grid2x2Plus, Link, PenLine } from 'lucide-react';
+import { GithubIcon } from '@lobehub/ui/icons';
+import { ChevronDown, FileArchive, Grid2x2Plus, Link, PenLine } from 'lucide-react';
import { type ReactNode, useState } from 'react';
import { useTranslation } from 'react-i18next';
@@ -62,7 +63,7 @@ const AddSkillButton = () => {
onClick: () => setUrlModal(true),
},
{
- icon: <Icon icon={Github} />,
+ icon: <Icon icon={GithubIcon} />,
key: 'importGithub',
label: (
<MenuLabel desc={t('tab.importFromGithub.desc')} title={t('tab.importFromGithub')} />
diff --git a/src/features/SkillStore/SkillList/ImportFromGithubModal.tsx b/src/features/SkillStore/SkillList/ImportFromGithubModal.tsx
index 688092a522b..a8398f1e426 100644
--- a/src/features/SkillStore/SkillList/ImportFromGithubModal.tsx
+++ b/src/features/SkillStore/SkillList/ImportFromGithubModal.tsx
@@ -1,8 +1,9 @@
'use client';
import { Alert, Flexbox, Icon, Input } from '@lobehub/ui';
+import { GithubIcon } from '@lobehub/ui/icons';
import { App, Button, Modal, Typography } from 'antd';
-import { ArrowLeftRight, Github, Sparkles } from 'lucide-react';
+import { ArrowLeftRight, Sparkles } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
@@ -49,7 +50,7 @@ const ImportFromGithubModal = memo<ImportFromGithubModalProps>(({ open, onOpenCh
<Modal destroyOnClose footer={null} open={open} title={null} width={480} onCancel={handleClose}>
<Flexbox align="center" gap={16} padding={'16px 0'}>
<Flexbox horizontal align="center" gap={8}>
- <Icon icon={Github} size={28} />
+ <Icon icon={GithubIcon} size={28} />
<Icon
icon={ArrowLeftRight}
size={16}
diff --git a/src/routes/(main)/community/features/CreateButton/Inner.tsx b/src/routes/(main)/community/features/CreateButton/Inner.tsx
index e2f903c4eb7..b9597f711fc 100644
--- a/src/routes/(main)/community/features/CreateButton/Inner.tsx
+++ b/src/routes/(main)/community/features/CreateButton/Inner.tsx
@@ -1,6 +1,7 @@
import { Button, Icon, Tag, Typography } from '@lobehub/ui';
+import { GithubIcon } from '@lobehub/ui/icons';
import { Divider } from 'antd';
-import { Github, Settings, Share2 } from 'lucide-react';
+import { Settings, Share2 } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
@@ -41,7 +42,7 @@ const Inner = memo(() => {
<p>{t('createGuide.func2.desc')}</p>
<br />
<Button
- icon={Github}
+ icon={GithubIcon}
type={'primary'}
onClick={() => window.open(AGENTS_INDEX_GITHUB, '__blank')}
>
diff --git a/src/routes/(main)/home/_layout/Footer/index.tsx b/src/routes/(main)/home/_layout/Footer/index.tsx
index 788cbc458be..818a38d8417 100644
--- a/src/routes/(main)/home/_layout/Footer/index.tsx
+++ b/src/routes/(main)/home/_layout/Footer/index.tsx
@@ -4,14 +4,13 @@ import { SOCIAL_URL } from '@lobechat/business-const';
import { useAnalytics } from '@lobehub/analytics/react';
import { type MenuProps } from '@lobehub/ui';
import { ActionIcon, DropdownMenu, Flexbox, Icon } from '@lobehub/ui';
-import { DiscordIcon } from '@lobehub/ui/icons';
+import { DiscordIcon, GithubIcon } from '@lobehub/ui/icons';
import {
Book,
CircleHelp,
Feather,
FileClockIcon,
FlaskConical,
- Github,
Rocket,
Settings,
Settings2,
@@ -173,7 +172,7 @@ const Footer = memo(() => {
...(footer.layout === 'compact' && !footer.hideGitHub
? [
{
- icon: <Icon icon={Github} />,
+ icon: <Icon icon={GithubIcon} />,
key: 'github',
label: (
<a href={GITHUB} rel="noopener noreferrer" target="_blank">
@@ -226,7 +225,7 @@ const Footer = memo(() => {
</DropdownMenu>
{!footer.hideGitHub && (
<a aria-label={'GitHub'} href={GITHUB} rel="noopener noreferrer" target={'_blank'}>
- <ActionIcon icon={Github} size={16} title={'GitHub'} />
+ <ActionIcon icon={GithubIcon} size={16} title={'GitHub'} />
</a>
)}
<Link to="/eval">