From d34e7890c3b4f8d7dd20f97ccf4737902de6fa04 Mon Sep 17 00:00:00 2001 From: Lucas Oliveira Date: Thu, 16 Feb 2023 22:49:51 -0300 Subject: [PATCH] fixed things during meeting --- .../src/CustomNodes/ChatInputNode/index.tsx | 14 ++++++++++- .../src/CustomNodes/InputNode/index.tsx | 25 ++++++++++++++++--- 2 files changed, 35 insertions(+), 4 deletions(-) diff --git a/space_flow/src/CustomNodes/ChatInputNode/index.tsx b/space_flow/src/CustomNodes/ChatInputNode/index.tsx index 622efb826..b8237c10c 100644 --- a/space_flow/src/CustomNodes/ChatInputNode/index.tsx +++ b/space_flow/src/CustomNodes/ChatInputNode/index.tsx @@ -1,12 +1,24 @@ import { ChatBubbleBottomCenterTextIcon } from "@heroicons/react/24/outline"; import Input from "../../components/inputComponent"; -import { isValidConnection, snakeToNormalCase } from "../../utils"; +import { isValidConnection, nodeColors, snakeToNormalCase } from "../../utils"; import { Handle, Position } from "reactflow"; import Tooltip from "../../components/TooltipComponent"; export default function ChatInputNode({ data }) { return (
+ + + isValidConnection(data, connection) + } + className="ml-1 bg-transparent border-solid border-l-8 border-y-transparent border-y-8 border-r-0 rounded-none" + style={{ borderLeftColor: 'white' }} + > + + + + isValidConnection(data, connection) + } + className="ml-1 bg-transparent border-solid border-l-8 border-y-transparent border-y-8 border-r-0 rounded-none" + style={{ borderLeftColor: nodeColors[data.type] }} + > + +
isValidConnection(data,connection)} + isValidConnection={(connection) => isValidConnection(data, connection)} className="-mr-1 bg-transparent border-solid border-l-8 border-y-transparent border-y-8 border-r-0 rounded-none" - style={{borderLeftColor: nodeColors[data.type]}} + style={{ borderLeftColor: nodeColors[data.type] }} >
);