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] }} >
);