Skip to content

Commit 20c8d2d

Browse files
committed
fix: 修复 CI 构建失败(icon 类型改为可选,移除未使用变量)
1 parent 9612cbc commit 20c8d2d

8 files changed

Lines changed: 8 additions & 20 deletions

src/pages/AuthenticationFlow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function CollapsibleSection({
1212
defaultOpen = false,
1313
}: {
1414
title: string;
15-
icon: string;
15+
icon?: string;
1616
children: React.ReactNode;
1717
defaultOpen?: boolean;
1818
}) {

src/pages/EndToEndWalkthrough.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function CollapsibleSection({
2020
highlight = false
2121
}: {
2222
title: string;
23-
icon: string;
23+
icon?: string;
2424
children: React.ReactNode;
2525
defaultOpen?: boolean;
2626
highlight?: boolean;

src/pages/LearningPathGuide.tsx

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { getThemeColor } from '../utils/theme';
1111
interface LearningPath {
1212
id: string;
1313
title: string;
14-
icon: string;
14+
icon?: string;
1515
description: string;
1616
duration: string;
1717
difficulty: 'beginner' | 'intermediate' | 'advanced';
@@ -100,18 +100,6 @@ function PathCard({
100100
isSelected: boolean;
101101
onSelect: () => void;
102102
}) {
103-
const difficultyColors = {
104-
beginner: 'var(--color-primary)',
105-
intermediate: 'var(--color-warning)',
106-
advanced: 'var(--color-primary)',
107-
};
108-
109-
const difficultyLabels = {
110-
beginner: '入门',
111-
intermediate: '中级',
112-
advanced: '高级',
113-
};
114-
115103
return (
116104
<button
117105
onClick={onSelect}

src/pages/LoopMechanism.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ function Introduction({
117117

118118
// ===== Loop Node Component =====
119119
interface LoopNodeProps {
120-
icon: string;
120+
icon?: string;
121121
title: string;
122122
description: string;
123123
variant?: 'default' | 'success' | 'warning';

src/pages/MemoryManagement.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function CollapsibleSection({
1616
defaultOpen = false,
1717
}: {
1818
title: string;
19-
icon: string;
19+
icon?: string;
2020
children: React.ReactNode;
2121
defaultOpen?: boolean;
2222
}) {

src/pages/SessionPersistence.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function CollapsibleSection({
1515
highlight = false
1616
}: {
1717
title: string;
18-
icon: string;
18+
icon?: string;
1919
children: React.ReactNode;
2020
defaultOpen?: boolean;
2121
highlight?: boolean;

src/pages/ToolDetails.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { getThemeColor } from '../utils/theme';
1010

1111

1212
interface ToolCardProps {
13-
icon: string;
13+
icon?: string;
1414
name: string;
1515
tools: string[];
1616
status: string;

src/pages/ToolDeveloperGuide.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function CollapsibleSection({
1414
highlight = false
1515
}: {
1616
title: string;
17-
icon: string;
17+
icon?: string;
1818
children: React.ReactNode;
1919
defaultOpen?: boolean;
2020
highlight?: boolean;

0 commit comments

Comments
 (0)