From ba271ff85fa8e080171a314dbe2c28d66ba55396 Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Thu, 13 Apr 2023 00:47:55 -0300 Subject: [PATCH] advanced icon --- .../src/CustomNodes/GenericNode/index.tsx | 53 ++++++++++--------- src/frontend/src/modals/NodeModal/index.tsx | 2 +- 2 files changed, 30 insertions(+), 25 deletions(-) diff --git a/src/frontend/src/CustomNodes/GenericNode/index.tsx b/src/frontend/src/CustomNodes/GenericNode/index.tsx index 5ed25268e..cce14fd49 100644 --- a/src/frontend/src/CustomNodes/GenericNode/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/index.tsx @@ -1,4 +1,4 @@ -import { TrashIcon } from "@heroicons/react/24/outline"; +import { Cog6ToothIcon, TrashIcon } from "@heroicons/react/24/outline"; import { classNames, nodeColors, @@ -23,7 +23,7 @@ export default function GenericNode({ const { setErrorData } = useContext(alertContext); const showError = useRef(true); const { types, deleteNode } = useContext(typesContext); - const {openPopUp} = useContext(PopUpContext) + const { openPopUp } = useContext(PopUpContext); const Icon = nodeIcons[types[data.type]]; if (!Icon) { if (showError.current) { @@ -54,17 +54,32 @@ export default function GenericNode({ />
{data.type}
- +
+ + +
-
+
{data.node.description}
@@ -73,7 +88,7 @@ export default function GenericNode({ .filter((t) => t.charAt(0) !== "_") .map((t: string, idx) => (
- {idx === 0 ? ( + {/* {idx === 0 ? (
) : ( <> - )} + )} */} {data.node.template[t].show ? ( {" "} -
-
+ {/*
Output -
+
*/} - Finish editing + Done