Skip to content

Commit 71eeb8f

Browse files
1.26.1-0.1.0: [feature] Export wallet icons (#572)
* 1.26.1-0.1.0: [feature] Export wallet icons
1 parent 112bf28 commit 71eeb8f

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bnc-onboard",
3-
"version": "1.26.1",
3+
"version": "1.26.1-0.1.0",
44
"description": "Onboard users to web3 by allowing them to select a wallet, get that wallet ready to transact and have access to synced wallet state.",
55
"keywords": [
66
"ethereum",

src/stores.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ export function initializeStores() {
8888
connect: null,
8989
instance: null,
9090
dashboard: null,
91-
type: null
91+
type: null,
92+
icons: null
9293
})
9394

9495
state = derived(

src/views/WalletSelect.svelte

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,14 +223,19 @@
223223
224224
return selectedWalletInterface
225225
})
226-
226+
const { name, type, svg, iconSrc, iconSrcSet } = module
227227
wallet.set({
228228
provider,
229229
instance,
230230
dashboard: selectedWalletInterface.dashboard,
231-
name: module.name,
231+
name,
232232
connect: selectedWalletInterface.connect,
233-
type: module.type
233+
type,
234+
icons: {
235+
svg,
236+
iconSrc,
237+
iconSrcSet
238+
}
234239
})
235240
236241
finish({ completed: true })

0 commit comments

Comments
 (0)