diff --git a/src/frontend/src/contexts/tabsContext.tsx b/src/frontend/src/contexts/tabsContext.tsx index ff882e1b6..1a95d3157 100644 --- a/src/frontend/src/contexts/tabsContext.tsx +++ b/src/frontend/src/contexts/tabsContext.tsx @@ -21,24 +21,24 @@ import { v4 as uuidv4 } from "uuid"; import { addEdge } from "reactflow"; const TabsContextInitialValue: TabsContextType = { - save: () => { }, + save: () => {}, tabIndex: 0, - setTabIndex: (index: number) => { }, + setTabIndex: (index: number) => {}, flows: [], - removeFlow: (id: string) => { }, - addFlow: (flowData?: any) => { }, - updateFlow: (newFlow: FlowType) => { }, + removeFlow: (id: string) => {}, + addFlow: (flowData?: any) => {}, + updateFlow: (newFlow: FlowType) => {}, incrementNodeId: () => uuidv4(), - downloadFlow: (flow: FlowType) => { }, - uploadFlow: () => { }, - hardReset: () => { }, + downloadFlow: (flow: FlowType) => {}, + uploadFlow: () => {}, + hardReset: () => {}, disableCopyPaste: false, - setDisableCopyPaste: (state: boolean) => { }, + setDisableCopyPaste: (state: boolean) => {}, getNodeId: () => "", paste: ( selection: { nodes: any; edges: any }, position: { x: number; y: number } - ) => { }, + ) => {}, }; export const TabsContext = createContext( @@ -109,7 +109,7 @@ export function TabsProvider({ children }: { children: ReactNode }) { templates[node.data.type]["description"]; node.data.node.template = updateTemplate( templates[node.data.type][ - "template" + "template" ] as unknown as APITemplateType, node.data.node.template as APITemplateType diff --git a/src/frontend/src/icons/Serper/index.tsx b/src/frontend/src/icons/Serper/index.tsx index 2100695ff..77ea58077 100644 --- a/src/frontend/src/icons/Serper/index.tsx +++ b/src/frontend/src/icons/Serper/index.tsx @@ -1,8 +1,9 @@ import React, { forwardRef } from "react"; import { ReactComponent as SerperSVG } from "./serper.svg"; -export const SerperIcon = forwardRef>( - (props, ref) => { - return ; - } -); \ No newline at end of file +export const SerperIcon = forwardRef< + SVGSVGElement, + React.PropsWithChildren<{}> +>((props, ref) => { + return ; +}); diff --git a/src/frontend/src/utils.ts b/src/frontend/src/utils.ts index 5f8e85242..cebf4fb02 100644 --- a/src/frontend/src/utils.ts +++ b/src/frontend/src/utils.ts @@ -180,7 +180,7 @@ export const nodeIcons: { // Weaviate: WeaviateIcon, // WikipediaAPIWrapper: WikipediaIcon, // WolframAlphaQueryRun: WolframIcon, - // WolframAlphaAPIWrapper: WolframIcon, + // WolframAlphaAPIWrapper: WolframIcon, Word: WordIcon, agents: RocketLaunchIcon, chains: LinkIcon,