Refactor: delete node button
This commit is contained in:
parent
8b021fa826
commit
ec8a801827
2 changed files with 8 additions and 3 deletions
|
|
@ -388,13 +388,16 @@ export default function NodeToolbarComponent({
|
|||
</SelectItem>
|
||||
)}
|
||||
|
||||
<SelectItem value={"delete"}>
|
||||
<div className="font-red flex text-red-500 hover:text-red-500">
|
||||
<SelectItem value={"delete"} className="focus:bg-red-400/[.20]">
|
||||
<div className="font-red flex text-status-red">
|
||||
<IconComponent
|
||||
name="Trash2"
|
||||
className="relative top-0.5 mr-2 h-4 w-4 "
|
||||
/>{" "}
|
||||
Delete{" "}
|
||||
<span className="">Delete</span>{" "}
|
||||
<span>
|
||||
<IconComponent name="Delete" className="text-red-300 absolute right-2 top-2 h-4 w-4"></IconComponent>
|
||||
</span>
|
||||
</div>
|
||||
</SelectItem>
|
||||
</SelectContent>
|
||||
|
|
|
|||
|
|
@ -117,6 +117,7 @@ import {
|
|||
X,
|
||||
XCircle,
|
||||
Zap,
|
||||
Delete,
|
||||
} from "lucide-react";
|
||||
import { FaApple, FaGithub } from "react-icons/fa";
|
||||
import { AWSIcon } from "../icons/AWS";
|
||||
|
|
@ -416,4 +417,5 @@ export const nodeIconsLucide: iconsType = {
|
|||
FlaskConical,
|
||||
AlertCircle,
|
||||
Bot,
|
||||
Delete,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue