Removed unused code and fixed type of InputGlobalComponent

This commit is contained in:
Lucas Oliveira 2024-06-07 12:06:31 -03:00
commit 638e6d66d9
4 changed files with 2 additions and 5 deletions

View file

@ -21,7 +21,6 @@ import {
LANGFLOW_SUPPORTED_TYPES,
TOOLTIP_EMPTY,
} from "../../../../constants/constants";
import OutputModal from "../outputModal";
import { Case } from "../../../../shared/components/caseComponent";
import useFlowStore from "../../../../stores/flowStore";
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 TooltipRenderComponent from "../tooltipRenderComponent";
import { TEXT_FIELD_TYPES } from "./constants";
import OutputModal from "../outputModal";
export default function ParameterComponent({
left,

View file

@ -16,7 +16,6 @@ import { Input } from "../../../ui/input";
import useFileDrop from "../../hooks/use-on-file-drop";
type SideBarFoldersButtonsComponentProps = {
folders: FolderType[];
pathname: string;
handleChangeFolder?: (id: string) => void;
handleDeleteFolder?: (item: FolderType) => void;

View file

@ -44,10 +44,8 @@ export default function SidebarNav({
folders?.length > 0 &&
isFolderPath && (
<SideBarFoldersButtonsComponent
folders={folders}
pathname={pathname}
handleChangeFolder={handleChangeFolder}
handleEditFolder={handleEditFolder}
handleDeleteFolder={handleDeleteFolder}
/>
)

View file

@ -81,7 +81,7 @@ export type InputListComponentType = {
export type InputGlobalComponentType = {
disabled: boolean;
onChange: (value: string) => void;
onChange: (value: string, snapshot?: boolean) => void;
setDb: (value: boolean) => void;
name: string;
data: TemplateVariableType;