input list added, not finished
This commit is contained in:
parent
ddb648dcbf
commit
714bb260c6
6 changed files with 36 additions and 7 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import { Bars3CenterLeftIcon, ChatBubbleBottomCenterTextIcon } from "@heroicons/react/24/outline";
|
||||
import Input from "../../components/inputComponent";
|
||||
import InputComponent from "../../components/inputComponent";
|
||||
import { isValidConnection, nodeColors, snakeToNormalCase } from "../../utils";
|
||||
import { Handle, Position } from "reactflow";
|
||||
import Tooltip from "../../components/TooltipComponent";
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { Bars3CenterLeftIcon, ChatBubbleBottomCenterTextIcon } from "@heroicons/react/24/outline";
|
||||
import { Handle, Position } from "reactflow";
|
||||
import Input from "../../components/inputComponent";
|
||||
import InputComponent from "../../components/inputComponent";
|
||||
import { isValidConnection, nodeColors, snakeToNormalCase } from "../../utils";
|
||||
import Tooltip from "../../components/TooltipComponent";
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import {
|
|||
snakeToNormalCase,
|
||||
} from "../../../../utils";
|
||||
import { useEffect, useRef, useState } from "react";
|
||||
import Input from "../../../../components/inputComponent";
|
||||
import InputComponent from "../../../../components/inputComponent";
|
||||
import ToggleComponent from "../../../../components/toggleComponent";
|
||||
|
||||
export default function ParameterComponent({
|
||||
|
|
@ -60,7 +60,7 @@ export default function ParameterComponent({
|
|||
</Tooltip>
|
||||
{left === true && type === "str" ? (
|
||||
<div className="mt-2 w-full">
|
||||
<Input
|
||||
<InputComponent
|
||||
value={data.node.template[name].value ?? ""}
|
||||
onChange={(t) => {
|
||||
data.node.template[name].value = t;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { Bars3CenterLeftIcon, TrashIcon } from "@heroicons/react/24/outline";
|
||||
import Input from "../../components/inputComponent";
|
||||
import InputComponent from "../../components/inputComponent";
|
||||
import {
|
||||
isValidConnection,
|
||||
nodeColors,
|
||||
|
|
@ -43,7 +43,7 @@ export default function InputNode({ data }) {
|
|||
</button>
|
||||
</div>
|
||||
<div className="w-full p-5 h-full">
|
||||
<Input
|
||||
<InputComponent
|
||||
value=""
|
||||
onChange={(e) => {
|
||||
data.text = e;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue