fix: use correct optimism icon in explore (#4893)

This commit is contained in:
cartcrom 2022-10-12 19:27:34 -05:00 committed by Connor McEwen
parent 20fe76ad29
commit 55beaf65a2
4 changed files with 5 additions and 5 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

@ -106,7 +106,7 @@ export default function NetworkFilter() {
<NetworkFilterOption onClick={toggleMenu} aria-label={`networkFilter`} active={open}>
<StyledMenuContent>
<NetworkLabel>
<Logo src={circleLogoUrl ?? logoUrl} /> {label}
<Logo src={logoUrl ?? circleLogoUrl} /> {label}
</NetworkLabel>
<Chevron open={open}>
{open ? (
@ -130,7 +130,7 @@ export default function NetworkFilter() {
}}
>
<NetworkLabel>
<Logo src={chainInfo.circleLogoUrl ?? chainInfo.logoUrl} />
<Logo src={chainInfo.logoUrl ?? chainInfo.circleLogoUrl} />
{chainInfo.label}
</NetworkLabel>
{network === currentChainName && (

@ -1,6 +1,5 @@
import celoCircleLogoUrl from 'assets/images/celoCircle.png'
import ethereumLogoUrl from 'assets/images/ethereum-logo.png'
import optimismCircleLogoUrl from 'assets/images/optimismCircle.png'
import polygonCircleLogoUrl from 'assets/images/polygonCircle.png'
import { default as arbitrumCircleLogoUrl, default as arbitrumLogoUrl } from 'assets/svg/arbitrum_logo.svg'
import celoLogo from 'assets/svg/celo_logo.svg'
@ -114,7 +113,8 @@ const CHAIN_INFO: ChainInfoMap = {
infoLink: 'https://info.uniswap.org/#/optimism/',
label: 'Optimism',
logoUrl: optimismLogoUrl,
circleLogoUrl: optimismCircleLogoUrl,
// Optimism perfers same icon for both
circleLogoUrl: optimismLogoUrl,
statusPage: 'https://optimism.io/status',
helpCenterUrl: 'https://help.uniswap.org/en/collections/3137778-uniswap-on-optimistic-ethereum-oξ',
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },

@ -66,7 +66,7 @@ export const CHAIN_NAME_TO_CHAIN_ID: { [key: string]: SupportedChainId } = {
OPTIMISM: SupportedChainId.OPTIMISM,
}
export const BACKEND_CHAIN_NAMES: Chain[] = ['ARBITRUM', 'CELO', 'ETHEREUM', 'OPTIMISM', 'POLYGON']
export const BACKEND_CHAIN_NAMES: Chain[] = ['ETHEREUM', 'POLYGON', 'OPTIMISM', 'ARBITRUM', 'CELO']
export function isValidBackendChainName(chainName: string | undefined): chainName is Chain {
if (!chainName) return false