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>
)} )}
<SelectItem value={"delete"}> <SelectItem value={"delete"} className="focus:bg-red-400/[.20]">
<div className="font-red flex text-red-500 hover:text-red-500"> <div className="font-red flex text-status-red">
<IconComponent <IconComponent
name="Trash2" name="Trash2"
className="relative top-0.5 mr-2 h-4 w-4 " 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> </div>
</SelectItem> </SelectItem>
</SelectContent> </SelectContent>

View file

@ -117,6 +117,7 @@ import {
X, X,
XCircle, XCircle,
Zap, Zap,
Delete,
} from "lucide-react"; } from "lucide-react";
import { FaApple, FaGithub } from "react-icons/fa"; import { FaApple, FaGithub } from "react-icons/fa";
import { AWSIcon } from "../icons/AWS"; import { AWSIcon } from "../icons/AWS";
@ -416,4 +417,5 @@ export const nodeIconsLucide: iconsType = {
FlaskConical, FlaskConical,
AlertCircle, AlertCircle,
Bot, Bot,
Delete,
}; };