update: replace Icon with lucide-react
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user