From c9f8a27983ebd1113f417b204ed0ef54d8654219 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Thu, 29 Jun 2023 09:34:19 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=80=20chore(NodeModal):=20update=20imp?= =?UTF-8?q?ort=20and=20variable=20name=20for=20nodeIconsLucide=20to=20impr?= =?UTF-8?q?ove=20code=20readability=20=F0=9F=92=84=20style(NodeModal):=20r?= =?UTF-8?q?emove=20unused=20import=20and=20variable=20to=20clean=20up=20co?= =?UTF-8?q?de=20The=20import=20and=20variable=20name=20for=20`nodeIconsLuc?= =?UTF-8?q?ide`=20has=20been=20updated=20to=20improve=20code=20readability?= =?UTF-8?q?.=20The=20unused=20import=20and=20variable=20`nodeIcons`=20and?= =?UTF-8?q?=20`toNormalCase`=20have=20been=20removed=20to=20clean=20up=20t?= =?UTF-8?q?he=20code.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/src/modals/NodeModal/index.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/frontend/src/modals/NodeModal/index.tsx b/src/frontend/src/modals/NodeModal/index.tsx index 2065b1720..add842096 100644 --- a/src/frontend/src/modals/NodeModal/index.tsx +++ b/src/frontend/src/modals/NodeModal/index.tsx @@ -6,8 +6,7 @@ import { classNames, limitScrollFieldsModal, nodeColors, - nodeIcons, - toNormalCase, + nodeIconsLucide, toTitleCase, } from "../../utils"; import { typesContext } from "../../contexts/typesContext"; @@ -28,7 +27,7 @@ export default function NodeModal({ data }: { data: NodeDataType }) { } } // any to avoid type conflict - const Icon: any = nodeIcons[types[data.type]]; + const Icon: any = nodeIconsLucide[types[data.type]]; return (