Add IOFileInput component to IOInputField
This commit is contained in:
parent
870204eb40
commit
07cbd593eb
3 changed files with 15 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
import { IOInputProps } from "../../types/components";
|
import { IOInputProps } from "../../types/components";
|
||||||
|
import IOFileInput from "../IOInputs/FileInput";
|
||||||
import { Textarea } from "../ui/textarea";
|
import { Textarea } from "../ui/textarea";
|
||||||
|
|
||||||
export default function IOInputField({
|
export default function IOInputField({
|
||||||
|
|
@ -18,7 +19,7 @@ export default function IOInputField({
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
case "fileInput":
|
case "fileInput":
|
||||||
return <div></div>;
|
return <IOFileInput field={field} updateValue={updateValue} />;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
7
src/frontend/src/components/IOInputs/FileInput/index.tsx
Normal file
7
src/frontend/src/components/IOInputs/FileInput/index.tsx
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
import { IOFileInputProps } from "../../../types/components";
|
||||||
|
|
||||||
|
export default function IOFileInput({ field, updateValue }: IOFileInputProps) {
|
||||||
|
//component to handle file upload from chatIO
|
||||||
|
function handleCLick() {}
|
||||||
|
return <div></div>;
|
||||||
|
}
|
||||||
|
|
@ -116,6 +116,7 @@ export type CodeAreaComponentType = {
|
||||||
};
|
};
|
||||||
|
|
||||||
export type FileComponentType = {
|
export type FileComponentType = {
|
||||||
|
IOInputProps;
|
||||||
disabled: boolean;
|
disabled: boolean;
|
||||||
onChange: (value: string[] | string) => void;
|
onChange: (value: string[] | string) => void;
|
||||||
value: string;
|
value: string;
|
||||||
|
|
@ -651,3 +652,8 @@ export type IOInputProps = {
|
||||||
field: TemplateVariableType;
|
field: TemplateVariableType;
|
||||||
updateValue: (e: any) => void;
|
updateValue: (e: any) => void;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type IOFileInputProps = {
|
||||||
|
field: TemplateVariableType;
|
||||||
|
updateValue: (e: any) => void;
|
||||||
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue