update: replace Icon with lucide-react

This commit is contained in:
tao.chen
2026-08-25 09:59:59 +08:00
parent fbb4cc0f1b
commit 97c8fe212b
7 changed files with 58 additions and 39 deletions
@@ -1,5 +1,5 @@
import { type ScheduleNode } from "../../services/api";
import Icon from "../../components/common/Icon";
import { BookText, FileCode2 } from "lucide-react";
import { shortHash } from "./utils";
import { PYTHON_VERSION_OPTIONS, type NodeForm } from "./state/schedulesStore";
@@ -28,10 +28,11 @@ export function NodeInspector({
: "bg-[#eaf3ff] text-[#326fc1]"
}`}
>
<Icon
name={node.version.script_type === "notebook" ? "notebook" : "python"}
size={17}
/>
{node.version.script_type === "notebook" ? (
<BookText size={17} />
) : (
<FileCode2 size={17} />
)}
</span>
<div className="flex min-w-0 flex-col gap-[3px]">
<small className="text-[9px] text-[#96a2af]"></small>