Removed unused code and fixed type of InputGlobalComponent
This commit is contained in:
parent
f69aa2d70f
commit
638e6d66d9
4 changed files with 2 additions and 5 deletions
|
|
@ -21,7 +21,6 @@ import {
|
||||||
LANGFLOW_SUPPORTED_TYPES,
|
LANGFLOW_SUPPORTED_TYPES,
|
||||||
TOOLTIP_EMPTY,
|
TOOLTIP_EMPTY,
|
||||||
} from "../../../../constants/constants";
|
} from "../../../../constants/constants";
|
||||||
import OutputModal from "../outputModal";
|
|
||||||
import { Case } from "../../../../shared/components/caseComponent";
|
import { Case } from "../../../../shared/components/caseComponent";
|
||||||
import useFlowStore from "../../../../stores/flowStore";
|
import useFlowStore from "../../../../stores/flowStore";
|
||||||
import useFlowsManagerStore from "../../../../stores/flowsManagerStore";
|
import useFlowsManagerStore from "../../../../stores/flowsManagerStore";
|
||||||
|
|
@ -47,6 +46,7 @@ import useHandleNodeClass from "../../../hooks/use-handle-node-class";
|
||||||
import useHandleRefreshButtonPress from "../../../hooks/use-handle-refresh-buttons";
|
import useHandleRefreshButtonPress from "../../../hooks/use-handle-refresh-buttons";
|
||||||
import TooltipRenderComponent from "../tooltipRenderComponent";
|
import TooltipRenderComponent from "../tooltipRenderComponent";
|
||||||
import { TEXT_FIELD_TYPES } from "./constants";
|
import { TEXT_FIELD_TYPES } from "./constants";
|
||||||
|
import OutputModal from "../outputModal";
|
||||||
|
|
||||||
export default function ParameterComponent({
|
export default function ParameterComponent({
|
||||||
left,
|
left,
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,6 @@ import { Input } from "../../../ui/input";
|
||||||
import useFileDrop from "../../hooks/use-on-file-drop";
|
import useFileDrop from "../../hooks/use-on-file-drop";
|
||||||
|
|
||||||
type SideBarFoldersButtonsComponentProps = {
|
type SideBarFoldersButtonsComponentProps = {
|
||||||
folders: FolderType[];
|
|
||||||
pathname: string;
|
pathname: string;
|
||||||
handleChangeFolder?: (id: string) => void;
|
handleChangeFolder?: (id: string) => void;
|
||||||
handleDeleteFolder?: (item: FolderType) => void;
|
handleDeleteFolder?: (item: FolderType) => void;
|
||||||
|
|
|
||||||
|
|
@ -44,10 +44,8 @@ export default function SidebarNav({
|
||||||
folders?.length > 0 &&
|
folders?.length > 0 &&
|
||||||
isFolderPath && (
|
isFolderPath && (
|
||||||
<SideBarFoldersButtonsComponent
|
<SideBarFoldersButtonsComponent
|
||||||
folders={folders}
|
|
||||||
pathname={pathname}
|
pathname={pathname}
|
||||||
handleChangeFolder={handleChangeFolder}
|
handleChangeFolder={handleChangeFolder}
|
||||||
handleEditFolder={handleEditFolder}
|
|
||||||
handleDeleteFolder={handleDeleteFolder}
|
handleDeleteFolder={handleDeleteFolder}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,7 @@ export type InputListComponentType = {
|
||||||
|
|
||||||
export type InputGlobalComponentType = {
|
export type InputGlobalComponentType = {
|
||||||
disabled: boolean;
|
disabled: boolean;
|
||||||
onChange: (value: string) => void;
|
onChange: (value: string, snapshot?: boolean) => void;
|
||||||
setDb: (value: boolean) => void;
|
setDb: (value: boolean) => void;
|
||||||
name: string;
|
name: string;
|
||||||
data: TemplateVariableType;
|
data: TemplateVariableType;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue