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

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

@ -66,7 +66,7 @@ export const CHAIN_NAME_TO_CHAIN_ID: { [key: string]: SupportedChainId } = {
OPTIMISM: SupportedChainId.OPTIMISM, 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 { export function isValidBackendChainName(chainName: string | undefined): chainName is Chain {
if (!chainName) return false if (!chainName) return false