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,
|
||||
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,
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -44,10 +44,8 @@ export default function SidebarNav({
|
|||
folders?.length > 0 &&
|
||||
isFolderPath && (
|
||||
<SideBarFoldersButtonsComponent
|
||||
folders={folders}
|
||||
pathname={pathname}
|
||||
handleChangeFolder={handleChangeFolder}
|
||||
handleEditFolder={handleEditFolder}
|
||||
handleDeleteFolder={handleDeleteFolder}
|
||||
/>
|
||||
)
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue