From 68ef31bf31ee1f46a19249ba04e85fe3b60943a5 Mon Sep 17 00:00:00 2001 From: Pedro Rodrigues Date: Sat, 3 Feb 2024 11:31:00 +0000 Subject: [PATCH] removed unnecessary imports to allow project to build --- src/api/transactions/transactions.ts | 17 +++++++-------- .../Graph/AnalysisWindow/Header/Header.tsx | 18 +++++++--------- .../Transactions/Transactions.tsx | 21 ++++++------------- 3 files changed, 21 insertions(+), 35 deletions(-) diff --git a/src/api/transactions/transactions.ts b/src/api/transactions/transactions.ts index f893b2d6..ae84c137 100644 --- a/src/api/transactions/transactions.ts +++ b/src/api/transactions/transactions.ts @@ -5,22 +5,19 @@ * The ward's compliance queires endpoints * OpenAPI spec version: 1.0 */ -import { - useQuery -} from 'react-query' import type { QueryFunction, QueryKey, UseQueryOptions, UseQueryResult -} from 'react-query' -import type { - GetTransactionsBetweenAddressesInputSchema -} from '../model/getTransactionsBetweenAddressesInputSchema' +} from 'react-query'; +import { + useQuery +} from 'react-query'; +import { instance } from '.././instance'; import type { GetTransactionsBetweenAddressesParams -} from '../model/getTransactionsBetweenAddressesParams' -import { instance } from '.././instance'; +} from '../model/getTransactionsBetweenAddressesParams'; @@ -33,7 +30,7 @@ export const getTransactionsBetweenAddresses = ( ) => { - return instance( + return instance( {url: `/transactions/get_transactions_between_addresses`, method: 'GET', params, signal }, diff --git a/src/components/Graph/AnalysisWindow/Header/Header.tsx b/src/components/Graph/AnalysisWindow/Header/Header.tsx index 0473f549..8681ad9f 100644 --- a/src/components/Graph/AnalysisWindow/Header/Header.tsx +++ b/src/components/Graph/AnalysisWindow/Header/Header.tsx @@ -1,19 +1,17 @@ -import { FC, useContext } from "react"; -import clsx from "clsx"; import { XMarkIcon } from "@heroicons/react/20/solid"; +import clsx from "clsx"; +import { FC, useContext } from "react"; -import LabelList from "./components/LabelList"; -import CopyToClipboardIcon from "./components/CopyToClipboardIcon"; -import BlockExplorerAddressIcon from "./components/BlockExplorerAddressIcon"; -import RiskIndicator from "./components/RiskIndicator"; import BigButton from "../../../common/BigButton"; import EntityLogo from "../../../common/EntityLogo"; +import BlockExplorerAddressIcon from "./components/BlockExplorerAddressIcon"; +import CopyToClipboardIcon from "./components/CopyToClipboardIcon"; +import LabelList from "./components/LabelList"; +import RiskIndicator from "./components/RiskIndicator"; -import { AnalysisContext } from "../AnalysisWindow"; import { - AnalysisMode, - AnalysisModes, - AnalysisModeNames, + AnalysisContext, AnalysisMode, + AnalysisModes } from "../AnalysisWindow"; interface ModeButtonProps { diff --git a/src/components/Graph/AnalysisWindow/Transactions/Transactions.tsx b/src/components/Graph/AnalysisWindow/Transactions/Transactions.tsx index 917e6435..456ff850 100644 --- a/src/components/Graph/AnalysisWindow/Transactions/Transactions.tsx +++ b/src/components/Graph/AnalysisWindow/Transactions/Transactions.tsx @@ -1,30 +1,21 @@ +import { Transition } from "@headlessui/react"; import { - FC, - useState, - useContext, - useCallback, - useMemo, - useEffect, -} from "react"; -import clsx from "clsx"; -import { - BarsArrowDownIcon, ArrowDownLeftIcon, ArrowUpRightIcon, + BarsArrowDownIcon, } from "@heroicons/react/16/solid"; -import { Transition } from "@headlessui/react"; +import { + FC, + useContext +} from "react"; -import { Category } from "../../../../api/model"; import { Colors } from "../../../../utils/colors"; import formatNumber from "../../../../utils/formatNumber"; -import BigButton from "../../../common/BigButton"; -import EntityLogo from "../../../common/EntityLogo"; import Badge from "../../../common/Badge"; import { GraphContext } from "../../Graph"; -import { AnalysisContext } from "../../custom_elements/nodes/AddressNode/AddressNode/AddressNode"; import CopyToClipboardIcon from "../Header/components/CopyToClipboardIcon";