Skip to content

Commit 643e0d7

Browse files
committed
Change settings param name to dashboard
1 parent 16b477a commit 643e0d7

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

src/interfaces.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export interface WalletInterface {
116116
address: StateSyncer
117117
network: StateSyncer
118118
balance: StateSyncer
119-
settings?: () => void
119+
dashboard?: () => void
120120
}
121121

122122
export interface StateSyncer {
@@ -130,7 +130,7 @@ export interface Wallet {
130130
type: 'hardware' | 'injected' | 'sdk'
131131
instance?: any
132132
connect?: () => Promise<{ message: string } | undefined>
133-
settings?: () => void
133+
dashboard?: () => void
134134
}
135135

136136
export interface CommonWalletOptions {

src/modules/select/wallets/authereum.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function authereum(
5252
return loggedIn && instance.getBalance()
5353
}
5454
},
55-
settings: () =>
55+
dashboard: () =>
5656
openLink(
5757
`https://${
5858
networkId !== 1 ? `${networkName(networkId)}.` : ''

src/modules/select/wallets/portis.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function portis(options: SdkWalletOptions & CommonWalletOptions): WalletModule {
6666
}, 1)
6767
})
6868
},
69-
settings: () => openLink('https://wallet.portis.io/')
69+
dashboard: () => openLink('https://wallet.portis.io/')
7070
}
7171
}
7272
},

src/modules/select/wallets/squarelink.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function squarelink(
6161
)
6262
})
6363
},
64-
settings: () => openLink('https://app.squarelink.com/')
64+
dashboard: () => openLink('https://app.squarelink.com/')
6565
}
6666
}
6767
},

src/modules/select/wallets/torus.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function torus(options: TorusOptions & CommonWalletOptions): WalletModule {
7777
)
7878
})
7979
},
80-
settings: () => openLink('https://app.tor.us/')
80+
dashboard: () => openLink('https://app.tor.us/')
8181
}
8282
}
8383
},

src/modules/select/wallets/unilogin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function unilogin(options: CommonWalletOptions): WalletModule {
2424
new Promise(resolve =>
2525
provider.send({ method: 'ul_disconnect' }, resolve)
2626
),
27-
settings: () => provider.openDashboard()
27+
dashboard: () => provider.openDashboard()
2828
}
2929
}
3030
},

src/stores.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export const wallet: WritableStore = writable({
5151
provider: null,
5252
connect: null,
5353
instance: null,
54-
settings: null,
54+
dashboard: null,
5555
type: null
5656
})
5757

@@ -119,7 +119,7 @@ export function resetWalletState(options?: {
119119
provider: undefined,
120120
connect: undefined,
121121
instance: undefined,
122-
settings: undefined
122+
dashboard: undefined
123123
}))
124124

125125
currentInterface.disconnect && currentInterface.disconnect()
@@ -136,7 +136,7 @@ export function resetWalletState(options?: {
136136
provider: undefined,
137137
connect: undefined,
138138
instance: undefined,
139-
settings: undefined
139+
dashboard: undefined
140140
}))
141141

142142
!disconnected &&

src/views/WalletSelect.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@
175175
wallet.set({
176176
provider,
177177
instance,
178-
settings: selectedWalletInterface.settings,
178+
dashboard: selectedWalletInterface.dashboard,
179179
name: module.name,
180180
connect: selectedWalletInterface.connect,
181181
type: module.type

0 commit comments

Comments
 (0)