fix: remove unused types (#6791)
* fix: remove unused types * update name
This commit is contained in:
parent
2e8ef480f9
commit
cb21750b87
@ -6,7 +6,13 @@ import { MouseoverTooltip } from 'components/Tooltip'
|
||||
import { getConnection } from 'connection'
|
||||
import { ConnectionType } from 'connection/types'
|
||||
import { getChainInfo } from 'constants/chainInfo'
|
||||
import { L1_CHAIN_IDS, L2_CHAIN_IDS, SupportedChainId, TESTNET_SET, UniWalletSupportedChains } from 'constants/chains'
|
||||
import {
|
||||
L1_CHAIN_IDS,
|
||||
L2_CHAIN_IDS,
|
||||
SupportedChainId,
|
||||
TESTNET_CHAIN_IDS,
|
||||
UniWalletSupportedChains,
|
||||
} from 'constants/chains'
|
||||
import { useOnClickOutside } from 'hooks/useOnClickOutside'
|
||||
import useSelectChain from 'hooks/useSelectChain'
|
||||
import useSyncChainQuery from 'hooks/useSyncChainQuery'
|
||||
@ -65,7 +71,7 @@ export const ChainSelector = ({ leftAlign }: ChainSelectorProps) => {
|
||||
const showTestnets = useAtomValue(showTestnetsAtom)
|
||||
const chains = showTestnets
|
||||
? NETWORK_SELECTOR_CHAINS
|
||||
: NETWORK_SELECTOR_CHAINS.filter((chain) => !TESTNET_SET.has(chain))
|
||||
: NETWORK_SELECTOR_CHAINS.filter((chain) => !TESTNET_CHAIN_IDS.has(chain))
|
||||
|
||||
const ref = useRef<HTMLDivElement>(null)
|
||||
const modalRef = useRef<HTMLDivElement>(null)
|
||||
|
@ -79,15 +79,7 @@ export const UNSUPPORTED_V2POOL_CHAIN_IDS = [
|
||||
SupportedChainId.ARBITRUM_GOERLI,
|
||||
] as const
|
||||
|
||||
export const TESTNET_CHAIN_IDS = [
|
||||
SupportedChainId.GOERLI,
|
||||
SupportedChainId.SEPOLIA,
|
||||
SupportedChainId.POLYGON_MUMBAI,
|
||||
SupportedChainId.ARBITRUM_GOERLI,
|
||||
SupportedChainId.OPTIMISM_GOERLI,
|
||||
] as const
|
||||
|
||||
export const TESTNET_SET = new Set([
|
||||
export const TESTNET_CHAIN_IDS = new Set([
|
||||
SupportedChainId.GOERLI,
|
||||
SupportedChainId.SEPOLIA,
|
||||
SupportedChainId.ARBITRUM_GOERLI,
|
||||
@ -97,8 +89,6 @@ export const TESTNET_SET = new Set([
|
||||
SupportedChainId.CELO_ALFAJORES,
|
||||
])
|
||||
|
||||
export type SupportedTestnetChainId = typeof TESTNET_CHAIN_IDS[number]
|
||||
|
||||
/**
|
||||
* All the chain IDs that are running the Ethereum protocol.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user