feat: add lucide-react Icon

This commit is contained in:
tao.chen
2026-08-24 18:41:49 +08:00
parent 27a0504079
commit fbb4cc0f1b
3 changed files with 22 additions and 9 deletions
@@ -9,15 +9,15 @@ import {
useRef,
useState,
} from "react";
import { Plus } from 'lucide-react';
import {
type Schedule,
type ScheduleArtifact,
type ScheduleEdge,
type ScheduleNode,
} from "../../services/api";
} from "~/services/api";
import { useApi, useAuth } from "../../context/AuthContext";
import { useApi, useAuth } from "~/context/AuthContext";
import Icon from "../../components/common/Icon";
import { NodeInspector } from "./NodeInspector";
import { RunHistory } from "./RunHistory";
@@ -361,7 +361,7 @@ export default function SchedulePage({
type="button"
onClick={() => useSchedulesStore.getState().openCreateDialog()}
>
<Icon name="plus" size={14} />
<Plus size={14}/>
<span></span>
</button>
<button
@@ -579,7 +579,7 @@ export default function SchedulePage({
type="button"
onClick={() => useSchedulesStore.getState().openCreateDialog()}
>
<Icon name="plus" size={15} />
<Plus size={15} />
</button>
</div>
) : schedule.nodes.length === 0 ? (
@@ -659,7 +659,7 @@ export default function SchedulePage({
role="menuitem"
onClick={() => useSchedulesStore.getState().openCreateDialog()}
>
<Icon name="plus" size={14} />
<Plus size={14} />
</button>
)}
@@ -671,7 +671,7 @@ export default function SchedulePage({
role="menuitem"
onClick={() => useSchedulesStore.getState().openCreateDialog()}
>
<Icon name="plus" size={14} />
<Plus size={14} />
</button>
<button
@@ -771,7 +771,7 @@ export default function SchedulePage({
>
{busy === "create-schedule"
? <span className="button-spinner" />
: <Icon name="plus" size={15} />}
: <Plus size={15} />}
{busy === "create-schedule" ? "正在创建…" : "创建调度"}
</button>
</div>