Skip to content

Commit

Permalink
Merge pull request #284 from reown-com/chore/improve-custom-network-w…
Browse files Browse the repository at this point in the history
…ith-image

Feat: add custom image for custom networks
  • Loading branch information
rohit-710 authored Feb 10, 2025
2 parents 9afa968 + c65b6ba commit 959a17b
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
5 changes: 4 additions & 1 deletion docs/appkit/javascript/core/custom-networks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ const customNetwork = defineChain({
// Then pass it to the AppKit
createAppKit({
adapters: [...],
networks: [customNetwork]
networks: [customNetwork],
chainImages: { // Customize networks' logos
123456789: '/custom-network-logo.png', // <chainId>: 'www.network.com/logo.png'
}
})
```
5 changes: 4 additions & 1 deletion docs/appkit/next/core/custom-networks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ const customNetwork = defineChain({
// Then pass it to the AppKit
createAppKit({
adapters: [...],
networks: [customNetwork]
networks: [customNetwork],
chainImages: { // Customize networks' logos
123456789: '/custom-network-logo.png', // <chainId>: 'www.network.com/logo.png'
}
})
```
5 changes: 4 additions & 1 deletion docs/appkit/react/core/custom-networks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ const customNetwork = defineChain({
// Then pass it to the AppKit
createAppKit({
adapters: [...],
networks: [customNetwork]
networks: [customNetwork],
chainImages: { // Customize networks' logos
123456789: '/custom-network-logo.png', // <chainId>: 'www.network.com/logo.png'
}
})
```
5 changes: 4 additions & 1 deletion docs/appkit/vue/core/custom-networks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ const customNetwork = defineChain({
// Then pass it to the AppKit
createAppKit({
adapters: [...],
networks: [customNetwork]
networks: [customNetwork],
chainImages: { // Customize networks' logos
123456789: '/custom-network-logo.png', // <chainId>: 'www.network.com/logo.png'
}
})
```

0 comments on commit 959a17b

Please sign in to comment.