From 4eaa95544b4b39af8ef8da6bdd2e5384f97569fa Mon Sep 17 00:00:00 2001 From: Alberto Gualis Date: Wed, 18 Dec 2024 13:03:43 +0100 Subject: [PATCH 1/2] fix: remove unused import --- .../lib/modules/pool/PoolDetail/PoolInfo/Erc4626Info.tsx | 2 +- .../lib/modules/tokens/TokenInputsValidationProvider.tsx | 1 - packages/lib/modules/tokens/TokenRow/TokenRow.tsx | 6 +----- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/packages/lib/modules/pool/PoolDetail/PoolInfo/Erc4626Info.tsx b/packages/lib/modules/pool/PoolDetail/PoolInfo/Erc4626Info.tsx index 2e961ed7..3249de39 100644 --- a/packages/lib/modules/pool/PoolDetail/PoolInfo/Erc4626Info.tsx +++ b/packages/lib/modules/pool/PoolDetail/PoolInfo/Erc4626Info.tsx @@ -1,5 +1,5 @@ import { TokenIcon } from '@repo/lib/modules/tokens/TokenIcon' -import { Erc4626ReviewData, GqlToken } from '@repo/lib/shared/services/api/generated/graphql' +import { Erc4626ReviewData } from '@repo/lib/shared/services/api/generated/graphql' import { Popover, PopoverTrigger, diff --git a/packages/lib/modules/tokens/TokenInputsValidationProvider.tsx b/packages/lib/modules/tokens/TokenInputsValidationProvider.tsx index f8698e00..52c3bc03 100644 --- a/packages/lib/modules/tokens/TokenInputsValidationProvider.tsx +++ b/packages/lib/modules/tokens/TokenInputsValidationProvider.tsx @@ -1,6 +1,5 @@ 'use client' -import { GqlToken } from '@repo/lib/shared/services/api/generated/graphql' import { useMandatoryContext } from '@repo/lib/shared/utils/contexts' import { PropsWithChildren, createContext, useState } from 'react' import { Address } from 'viem' diff --git a/packages/lib/modules/tokens/TokenRow/TokenRow.tsx b/packages/lib/modules/tokens/TokenRow/TokenRow.tsx index 12db833b..c8caf1aa 100644 --- a/packages/lib/modules/tokens/TokenRow/TokenRow.tsx +++ b/packages/lib/modules/tokens/TokenRow/TokenRow.tsx @@ -14,11 +14,7 @@ import { } from '@chakra-ui/react' import { Address } from 'viem' import { useTokens } from '../TokensProvider' -import { - GqlChain, - GqlPoolTokenDisplay, - GqlToken, -} from '@repo/lib/shared/services/api/generated/graphql' +import { GqlChain, GqlPoolTokenDisplay } from '@repo/lib/shared/services/api/generated/graphql' import { ReactNode, useEffect, useState } from 'react' import { TokenIcon } from '../TokenIcon' import { useCurrency } from '@repo/lib/shared/hooks/useCurrency' From 0244c22163528fd86ee5ed248eae4c871519e02f Mon Sep 17 00:00:00 2001 From: Gareth Fuller Date: Wed, 18 Dec 2024 14:14:28 +0000 Subject: [PATCH 2/2] chore: Additional removals --- .../actions/remove-liquidity/RemoveLiquidityProvider.tsx | 6 +----- .../remove-liquidity/form/RemoveLiquidityProportional.tsx | 1 - packages/lib/modules/tokens/NativeAssetSelectModal.tsx | 2 +- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/packages/lib/modules/pool/actions/remove-liquidity/RemoveLiquidityProvider.tsx b/packages/lib/modules/pool/actions/remove-liquidity/RemoveLiquidityProvider.tsx index 71641bdd..04d80e1f 100644 --- a/packages/lib/modules/pool/actions/remove-liquidity/RemoveLiquidityProvider.tsx +++ b/packages/lib/modules/pool/actions/remove-liquidity/RemoveLiquidityProvider.tsx @@ -14,11 +14,7 @@ import { selectRemoveLiquidityHandler } from './handlers/selectRemoveLiquidityHa import { useRemoveLiquidityPriceImpactQuery } from './queries/useRemoveLiquidityPriceImpactQuery' import { RemoveLiquidityType } from './remove-liquidity.types' import { Address, formatUnits, Hash } from 'viem' -import { - emptyTokenAmounts, - toHumanAmount, - toHumanAmountWithAddress, -} from '../LiquidityActionHelpers' +import { emptyTokenAmounts, toHumanAmountWithAddress } from '../LiquidityActionHelpers' import { getPoolActionableTokens, isCowAmmPool } from '../../pool.helpers' import { isWrappedNativeAsset } from '@repo/lib/modules/tokens/token.helpers' import { useRemoveLiquiditySimulationQuery } from './queries/useRemoveLiquiditySimulationQuery' diff --git a/packages/lib/modules/pool/actions/remove-liquidity/form/RemoveLiquidityProportional.tsx b/packages/lib/modules/pool/actions/remove-liquidity/form/RemoveLiquidityProportional.tsx index 4cd8a4b6..cc6889af 100644 --- a/packages/lib/modules/pool/actions/remove-liquidity/form/RemoveLiquidityProportional.tsx +++ b/packages/lib/modules/pool/actions/remove-liquidity/form/RemoveLiquidityProportional.tsx @@ -2,7 +2,6 @@ 'use client' import TokenRow from '@repo/lib/modules/tokens/TokenRow/TokenRow' -import { GqlToken } from '@repo/lib/shared/services/api/generated/graphql' import { Card, Text, VStack, useDisclosure } from '@chakra-ui/react' import { Address } from 'viem' import { useRemoveLiquidity } from '../RemoveLiquidityProvider' diff --git a/packages/lib/modules/tokens/NativeAssetSelectModal.tsx b/packages/lib/modules/tokens/NativeAssetSelectModal.tsx index dac64806..39f7310b 100644 --- a/packages/lib/modules/tokens/NativeAssetSelectModal.tsx +++ b/packages/lib/modules/tokens/NativeAssetSelectModal.tsx @@ -12,7 +12,7 @@ import { VStack, } from '@chakra-ui/react' import { RefObject } from 'react' -import { GqlChain, GqlToken } from '@repo/lib/shared/services/api/generated/graphql' +import { GqlChain } from '@repo/lib/shared/services/api/generated/graphql' import { CompactTokenSelectList } from './TokenSelectModal/TokenSelectList/CompactTokenSelectList' import { ApiToken } from '../pool/pool.types'