Commit 843afa93 authored by Zach Pomerantz's avatar Zach Pomerantz Committed by GitHub

fix: do not load token list (#4820)

* build: upgrade widgets

* fix: use empty token list

* build: trigger checks
parent 5441e638
import { Currency, OnReviewSwapClick, SwapWidget, SwapWidgetSkeleton } from '@uniswap/widgets' import { Currency, EMPTY_TOKEN_LIST, OnReviewSwapClick, SwapWidget, SwapWidgetSkeleton } from '@uniswap/widgets'
import { useWeb3React } from '@web3-react/core' import { useWeb3React } from '@web3-react/core'
import { useActiveLocale } from 'hooks/useActiveLocale' import { useActiveLocale } from 'hooks/useActiveLocale'
import { useIsDarkMode } from 'state/user/hooks' import { useIsDarkMode } from 'state/user/hooks'
...@@ -39,6 +39,7 @@ export default function Widget({ defaultToken, onReviewSwapClick }: WidgetProps) ...@@ -39,6 +39,7 @@ export default function Widget({ defaultToken, onReviewSwapClick }: WidgetProps)
onReviewSwapClick={onReviewSwapClick} onReviewSwapClick={onReviewSwapClick}
// defaultChainId is excluded - it is always inferred from the passed provider // defaultChainId is excluded - it is always inferred from the passed provider
provider={provider} provider={provider}
tokenList={EMPTY_TOKEN_LIST} // prevents loading the default token list, as we use our own token selector UI
{...inputs} {...inputs}
{...settings} {...settings}
{...transactions} {...transactions}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment