This commit is contained in:
anovazzi1 2023-05-30 00:16:30 -03:00
commit 8a2cf0f721
3 changed files with 18 additions and 17 deletions

View file

@ -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<TabsContextType>(

View file

@ -1,8 +1,9 @@
import React, { forwardRef } from "react";
import { ReactComponent as SerperSVG } from "./serper.svg";
export const SerperIcon = forwardRef<SVGSVGElement, React.PropsWithChildren<{}>>(
(props, ref) => {
export const SerperIcon = forwardRef<
SVGSVGElement,
React.PropsWithChildren<{}>
>((props, ref) => {
return <SerperSVG ref={ref} {...props} />;
}
);
});