Skip to content

Commit

Permalink
Feat: Add gnosis icon (#2135)
Browse files Browse the repository at this point in the history
* feat: add gnosis icon

* chore: changeset
  • Loading branch information
marthendalnunes authored Aug 12, 2024
1 parent 379bc56 commit 675f9dd
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/honest-hornets-reply.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rainbow-me/rainbowkit": patch
---

Add icon for Gnosis Chain
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ type ChainName =
| 'bsc'
| 'bscTestnet'
| 'goerli'
| 'gnosis'
| 'hardhat'
| 'holesky'
| 'klaytn'
Expand Down Expand Up @@ -96,6 +97,11 @@ const ethereumIcon: IconMetadata = {
iconUrl: async () => (await import('./chainIcons/ethereum.svg')).default,
};

const gnosisIcon: IconMetadata = {
iconBackground: '#04795c',
iconUrl: async () => (await import('./chainIcons/gnosis.svg')).default,
};

const hardhatIcon: IconMetadata = {
iconBackground: '#f9f7ec',
iconUrl: async () => (await import('./chainIcons/hardhat.svg')).default,
Expand Down Expand Up @@ -167,6 +173,7 @@ const chainMetadataByName: Record<ChainName, ChainMetadata | null> = {
cronos: { chainId: 25, ...cronosIcon },
cronosTestnet: { chainId: 338, ...cronosIcon },
goerli: { chainId: 5, ...ethereumIcon },
gnosis: { chainId: 100, name: 'Gnosis', ...gnosisIcon },
hardhat: { chainId: 31_337, ...hardhatIcon },
holesky: { chainId: 17000, ...ethereumIcon },
kovan: { chainId: 42, ...ethereumIcon },
Expand Down

0 comments on commit 675f9dd

Please sign in to comment.