Removed unused imports

This commit is contained in:
Lucas Oliveira 2023-03-02 09:49:50 -03:00
commit fc0fe8f5b8
10 changed files with 7 additions and 30 deletions

View file

@ -1,9 +1,8 @@
import { Bars3CenterLeftIcon, CheckCircleIcon, TrashIcon } from "@heroicons/react/24/outline";
import { Input } from "@mui/material";
import { CheckCircleIcon, TrashIcon } from "@heroicons/react/24/outline";
import { Handle, Position } from "reactflow";
import { isValidConnection, nodeColors } from "../../utils";
import ToggleComponent from "../../components/toggleComponent";
import { useContext, useEffect, useState } from "react";
import { useContext, useState } from "react";
import { typesContext } from "../../contexts/typesContext";
import { NodeDataType } from "../../types/flow";

View file

@ -1,7 +1,6 @@
import { Bars3CenterLeftIcon, ChatBubbleBottomCenterTextIcon } from "@heroicons/react/24/outline";
import { Bars3CenterLeftIcon } from "@heroicons/react/24/outline";
import { Handle, Position } from "reactflow";
import InputComponent from "../../components/inputComponent";
import { isValidConnection, nodeColors, snakeToNormalCase } from "../../utils";
import { isValidConnection, nodeColors } from "../../utils";
import Tooltip from "../../components/TooltipComponent";
import { useContext } from "react";
import { typesContext } from "../../contexts/typesContext";

View file

@ -2,8 +2,6 @@ import { Handle, Position, useUpdateNodeInternals } from "reactflow";
import Tooltip from "../../../../components/TooltipComponent";
import {
isValidConnection,
nodeColors,
snakeToNormalCase,
} from "../../../../utils";
import { useContext, useEffect, useRef, useState } from "react";
import InputComponent from "../../../../components/inputComponent";
@ -27,7 +25,6 @@ export default function ParameterComponent({
const ref = useRef(null);
const updateNodeInternals = useUpdateNodeInternals();
const [position, setPosition] = useState(0);
var _ = require('lodash');
useEffect(() => {
if (ref.current && ref.current.offsetTop && ref.current.clientHeight) {
setPosition(ref.current.offsetTop + ref.current.clientHeight / 2);

View file

@ -10,7 +10,6 @@ import ParameterComponent from "./components/parameterComponent";
import { typesContext } from "../../contexts/typesContext";
import { useContext } from "react";
import { NodeDataType} from "../../types/flow";
import { APITemplateType, TemplateVariableType } from "../../types/api";
export default function GenericNode({ data}:{data:NodeDataType}) {
const {types, deleteNode} = useContext(typesContext);

View file

@ -1,10 +1,9 @@
import { Disclosure } from "@headlessui/react";
import { ArrowUpTrayIcon, ChevronLeftIcon } from "@heroicons/react/24/outline";
import { ChevronLeftIcon } from "@heroicons/react/24/outline";
import { useContext } from "react";
import { Link } from "react-router-dom";
import { classNames } from "../../utils";
import { locationContext } from "../../contexts/locationContext";
import { TabsContext } from "../../contexts/tabsContext";
export default function ExtraSidebar() {
const {

View file

@ -2,14 +2,13 @@ import SidebarButton from "./sidebarButton";
import { BsPlusSquare } from "react-icons/bs";
import { classNames } from "../../utils";
import { ChevronRightIcon } from "@heroicons/react/24/outline";
import { useContext, useState } from "react";
import { useContext } from "react";
import { sidebarNavigation } from "../../entities/sidebarNav";
import { locationContext } from "../../contexts/locationContext";
export default function Sidebar() {
let { showSideBar, isStackedOpen, setIsStackedOpen } =
useContext(locationContext);
const [newProjectOpen, setNewProjectOpen] = useState(false);
let current = false;
return (
<div
@ -33,7 +32,6 @@ export default function Sidebar() {
<button
key="New Project"
onClick={() => {
setNewProjectOpen(true);
}}
className={classNames(
current

View file

@ -20,8 +20,6 @@ export const TabsContext = createContext<TabsContextType>(
TabsContextInitialValue
);
let _ = require("lodash");
export function TabsProvider({ children }:{children:ReactNode}) {
const [tabIndex, setTabIndex] = useState(0);
const [flows, setFlows] = useState<Array<FlowType>>([]);

View file

@ -1,10 +1,5 @@
import {
BoltIcon,
Cog6ToothIcon,
HomeIcon,
LightBulbIcon,
RocketLaunchIcon,
TableCellsIcon,
} from '@heroicons/react/24/outline'

View file

@ -1,5 +1,3 @@
import { CSSProperties, FC } from 'react';
import { Node } from 'reactflow';
import { ConnectionLineComponentProps } from 'reactflow';
@ -7,12 +5,8 @@ import { ConnectionLineComponentProps } from 'reactflow';
const ConnectionLineComponent = ({
fromX,
fromY,
fromPosition,
toX,
toY,
toPosition,
connectionLineType,
fromNode,
connectionLineStyle = {} // provide a default value for connectionLineStyle
}:ConnectionLineComponentProps) => {
return (

View file

@ -1,6 +1,5 @@
import { ArrowDownTrayIcon } from "@heroicons/react/24/outline";
import { PlusIcon, XMarkIcon } from "@heroicons/react/24/solid";
import { useContext, useRef, useState } from "react";
import { useContext, useState } from "react";
import { TabsContext } from "../../../../contexts/tabsContext";
import { FlowType } from "../../../../types/flow";