update: replace Icon with lucide-react

This commit is contained in:
tao.chen
2026-09-02 10:10:41 +08:00
committed by tao.chen
parent 9c67ae333c
commit 9187724ceb
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>