From 9ed9a9dd49087f40a532c78cc34fbe3d69f574bc Mon Sep 17 00:00:00 2001 From: Lucas Oliveira Date: Wed, 29 Nov 2023 14:01:26 -0300 Subject: [PATCH] Fixed icon not colorful on nodes --- .../src/CustomNodes/GenericNode/index.tsx | 2 +- .../src/components/genericIconComponent/index.tsx | 15 ++++++++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/frontend/src/CustomNodes/GenericNode/index.tsx b/src/frontend/src/CustomNodes/GenericNode/index.tsx index afa2558f7..9a6f818f2 100644 --- a/src/frontend/src/CustomNodes/GenericNode/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/index.tsx @@ -176,7 +176,7 @@ export default function GenericNode({ { const TargetIcon = nodeIconsLucide[name] ?? nodeIconsLucide["unknown"]; + + const style = { + strokeWidth: 1.5, + className: className, + ...(stroke && { stroke: stroke }), + ...(iconColor && { color: iconColor, stroke: stroke }), + }; + return ( ); }