diff --git a/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx b/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx index caa14975f..3d931fbe2 100644 --- a/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx @@ -122,7 +122,7 @@ export default function ParameterComponent({ {nodeNames[item.family] ?? ""}{" "} {" "} - {item.type == "" ? "" : " - "} + {item.type === "" ? "" : " - "} {item.type.split(", ").length > 2 ? item.type.split(", ").map((el, i) => ( @@ -176,7 +176,7 @@ export default function ParameterComponent({ <> ) : ( ) : data.node.template[name].multiline ? ( diff --git a/src/frontend/src/components/AccordionComponent/index.tsx b/src/frontend/src/components/AccordionComponent/index.tsx index ceeb938a8..3b0ddd596 100644 --- a/src/frontend/src/components/AccordionComponent/index.tsx +++ b/src/frontend/src/components/AccordionComponent/index.tsx @@ -13,7 +13,7 @@ export default function AccordionComponent({ open = [], }: AccordionComponentType) { const [value, setValue] = useState( - open.length == 0 ? "" : getOpenAccordion() + open.length === 0 ? "" : getOpenAccordion() ); function getOpenAccordion() { diff --git a/src/frontend/src/components/codeAreaComponent/index.tsx b/src/frontend/src/components/codeAreaComponent/index.tsx index 07ceb0593..0f0013c1e 100644 --- a/src/frontend/src/components/codeAreaComponent/index.tsx +++ b/src/frontend/src/components/codeAreaComponent/index.tsx @@ -27,15 +27,10 @@ export default function CodeAreaComponent({ useEffect(() => { setMyValue(typeof value == "string" ? value : JSON.stringify(value)); }, [value]); + return ( -
-
+
{ @@ -53,9 +48,8 @@ export default function CodeAreaComponent({ }} className={ editNode - ? "input-edit-node input-dialog " - : "input-dialog input-primary " + - (disabled ? "input-disable" : "") + ? "input-edit-node" + : "input-primary text-muted-foreground" + (disabled ? " input-disable" : "") } > {myValue !== "" ? myValue : "Type something..."} @@ -87,6 +81,5 @@ export default function CodeAreaComponent({
-
); } diff --git a/src/frontend/src/components/inputFileComponent/index.tsx b/src/frontend/src/components/inputFileComponent/index.tsx index fc69e5f95..c4ae9925b 100644 --- a/src/frontend/src/components/inputFileComponent/index.tsx +++ b/src/frontend/src/components/inputFileComponent/index.tsx @@ -98,10 +98,8 @@ export default function InputFileComponent({ onClick={handleButtonClick} className={ editNode - ? " input-edit-node " + " input-dialog " - : (disabled ? " input-disable " : "") + - " input-primary " + - " input-dialog " + ? "input-edit-node input-dialog text-muted-foreground" + : (disabled ? "input-disable input-primary input-dialog" : "input-primary input-dialog text-muted-foreground") } > {myValue !== "" ? myValue : "No file"} diff --git a/src/frontend/src/components/intComponent/index.tsx b/src/frontend/src/components/intComponent/index.tsx index 2428d03ee..09c342712 100644 --- a/src/frontend/src/components/intComponent/index.tsx +++ b/src/frontend/src/components/intComponent/index.tsx @@ -30,7 +30,7 @@ export default function IntComponent({
{ diff --git a/src/frontend/src/components/promptComponent/index.tsx b/src/frontend/src/components/promptComponent/index.tsx index 7385518c8..f02c85ba9 100644 --- a/src/frontend/src/components/promptComponent/index.tsx +++ b/src/frontend/src/components/promptComponent/index.tsx @@ -44,7 +44,7 @@ export default function PromptAreaComponent({ }) .catch((error) => {}); } - }, [reactFlowInstance, field_name]); + }, [reactFlowInstance, field_name, myValue, nodeClass, setNodeClass]); return (
@@ -69,10 +69,9 @@ export default function PromptAreaComponent({ }} className={ editNode - ? " input-edit-node " + " input-dialog " + ? "input-edit-node input-dialog" : (disabled ? " input-disable " : "") + - " input-primary " + - " input-dialog " + " input-primary input-dialog" } > {myValue !== "" ? myValue : "Type your prompt here"} diff --git a/src/frontend/src/components/textAreaComponent/index.tsx b/src/frontend/src/components/textAreaComponent/index.tsx index a50969cfb..d8121f5fb 100644 --- a/src/frontend/src/components/textAreaComponent/index.tsx +++ b/src/frontend/src/components/textAreaComponent/index.tsx @@ -27,13 +27,8 @@ export default function TextAreaComponent({ }, [closePopUp]); return ( -
-
+
+