Refactor: delete node button

This commit is contained in:
igorrCarvalho 2024-02-24 18:10:17 -03:00
commit ec8a801827
2 changed files with 8 additions and 3 deletions

View file

@ -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>

View file

@ -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,
};