Skip to content

Commit

Permalink
fix: adding optimism icon (#193)
Browse files Browse the repository at this point in the history
* fix: adding optimism icon

* chore: small update on alt for images
  • Loading branch information
wainola authored Sep 30, 2024
1 parent 7e260b7 commit 0bcedfb
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
21 changes: 21 additions & 0 deletions public/assets/icons/optimism.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 7 additions & 4 deletions src/utils/renderUtils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,17 @@ export const renderNetworkIcon = (caipId: string, classes: Record<"networkIcon"
case "eip155:10200":
return <img src={`/assets/icons/gnosis.svg`} alt="gnosis" className={classes.networkIcon} />
case "eip155:421614":
return <img src={`/assets/icons/arbitrum.svg`} alt="gnosis" className={classes.networkIcon} />
case "eip155:42161":
return <img src={`/assets/icons/arbitrum.svg`} alt="arbitrum" className={classes.networkIcon} />
case "eip155:84532":
return <img src={`/assets/icons/base.svg`} alt="gnosis" className={classes.networkIcon} />
return <img src={`/assets/icons/base.svg`} alt="base" className={classes.networkIcon} />
case "polkadot:3799":
return <img src={`/assets/icons/tangle-logo.svg`} alt="gnosis" className={classes.networkIcon} />
return <img src={`/assets/icons/tangle-logo.svg`} alt="tangle" className={classes.networkIcon} />
case "eip155:1993":
case "eip155:8333":
return <img src={`/assets/icons/b3-sepolia.svg`} alt="gnosis" className={classes.networkIcon} />
return <img src={`/assets/icons/b3-sepolia.svg`} alt="b3-sepolia" className={classes.networkIcon} />
case "eip155:10":
return <img src={`/assets/icons/optimism.svg`} alt="optimism" className={classes.networkIcon} />
default:
return <img src={`/assets/icons/evm.svg`} alt="ethereum" className={classes.networkIcon} />
}
Expand Down

0 comments on commit 0bcedfb

Please sign in to comment.