Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
interface
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LuckySwap
interface
Commits
55beaf65
Commit
55beaf65
authored
Oct 12, 2022
by
cartcrom
Committed by
Connor McEwen
Oct 13, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: use correct optimism icon in explore (#4893)
parent
20fe76ad
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
optimismCircle.png
src/assets/images/optimismCircle.png
+0
-0
NetworkFilter.tsx
src/components/Tokens/TokenTable/NetworkFilter.tsx
+2
-2
chainInfo.ts
src/constants/chainInfo.ts
+2
-2
util.ts
src/graphql/data/util.ts
+1
-1
No files found.
src/assets/images/optimismCircle.png
deleted
100644 → 0
View file @
20fe76ad
1.16 KB
src/components/Tokens/TokenTable/NetworkFilter.tsx
View file @
55beaf65
...
...
@@ -106,7 +106,7 @@ export default function NetworkFilter() {
<
NetworkFilterOption
onClick=
{
toggleMenu
}
aria
-
label=
{
`networkFilter`
}
active=
{
open
}
>
<
StyledMenuContent
>
<
NetworkLabel
>
<
Logo
src=
{
circleLogoUrl
??
l
ogoUrl
}
/>
{
label
}
<
Logo
src=
{
logoUrl
??
circleL
ogoUrl
}
/>
{
label
}
</
NetworkLabel
>
<
Chevron
open=
{
open
}
>
{
open
?
(
...
...
@@ -130,7 +130,7 @@ export default function NetworkFilter() {
}
}
>
<
NetworkLabel
>
<
Logo
src=
{
chainInfo
.
circleLogoUrl
??
chainInfo
.
l
ogoUrl
}
/>
<
Logo
src=
{
chainInfo
.
logoUrl
??
chainInfo
.
circleL
ogoUrl
}
/>
{
chainInfo
.
label
}
</
NetworkLabel
>
{
network
===
currentChainName
&&
(
...
...
src/constants/chainInfo.ts
View file @
55beaf65
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
},
...
...
src/graphql/data/util.ts
View file @
55beaf65
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment