From abf58c52247a0ac66c81d87361b4171ef5926bba Mon Sep 17 00:00:00 2001 From: Lucas Oliveira Date: Sat, 9 Dec 2023 20:09:04 -0300 Subject: [PATCH] Fixed group description edit message and removed ability to change name on Share modal and fixed Saving on custom component --- .../src/CustomNodes/GenericNode/index.tsx | 88 ++++++++++--------- .../EditFlowSettingsComponent/index.tsx | 59 ++++++++----- src/frontend/src/modals/shareModal/index.tsx | 16 ++-- src/frontend/src/style/applies.css | 4 +- src/frontend/src/types/components/index.ts | 4 +- src/frontend/src/utils/reactflowUtils.ts | 2 +- 6 files changed, 93 insertions(+), 80 deletions(-) diff --git a/src/frontend/src/CustomNodes/GenericNode/index.tsx b/src/frontend/src/CustomNodes/GenericNode/index.tsx index 73ab9aeef..0a926719e 100644 --- a/src/frontend/src/CustomNodes/GenericNode/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/index.tsx @@ -16,7 +16,7 @@ import { validationStatusType } from "../../types/components"; import { NodeDataType } from "../../types/flow"; import { handleKeyDown, scapedJSONStringfy } from "../../utils/reactflowUtils"; import { nodeColors, nodeIconsLucide } from "../../utils/styleUtils"; -import { classNames, getFieldTitle } from "../../utils/utils"; +import { classNames, cn, getFieldTitle } from "../../utils/utils"; import ParameterComponent from "./components/parameterComponent"; export default function GenericNode({ @@ -361,36 +361,18 @@ export default function GenericNode({
- {data.node?.description !== "" && - showNode && - data.node?.flow && - inputDescription ? ( -