File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 11
11
export let modalData: WalletSelectModalData
12
12
export let handleWalletSelect: (wallet : WalletModule ) => void
13
13
export let loadingWallet: string | undefined
14
-
15
- let showingAllWalletModules : boolean = false
14
+ export let showingAllWalletModules : boolean = false
15
+ export let showAllWallets : () => void
16
16
let selectedWallet: WritableStore
17
17
18
18
const unsubscribe = wallet .subscribe (wallet => (selectedWallet = wallet ))
80
80
81
81
{#if modalData .secondaryWallets && modalData .secondaryWallets .length && ! showingAllWalletModules }
82
82
<div >
83
- <Button onclick ={() => (showingAllWalletModules = true )}>
84
- Show More
85
- </Button >
83
+ <Button onclick ={showAllWallets }>Show More</Button >
86
84
</div >
87
85
{/if }
88
86
Original file line number Diff line number Diff line change 53
53
54
54
let loadingWallet: string | undefined = undefined
55
55
56
+ let showingAllWalletModules = false
57
+ const showAllWallets = () => (showingAllWalletModules = true )
58
+
56
59
renderWalletSelect ()
57
60
58
61
async function renderWalletSelect() {
207
210
<p class =" bn-onboard-custom bn-onboard-select-description" >
208
211
{@html modalData .description }
209
212
</p >
210
- <Wallets {modalData } {handleWalletSelect } {loadingWallet } />
213
+ <Wallets
214
+ {modalData }
215
+ {handleWalletSelect }
216
+ {loadingWallet }
217
+ {showingAllWalletModules }
218
+ {showAllWallets } />
211
219
<div class =" bn-onboard-custom bn-onboard-select-info-container" >
212
220
<span
213
221
class =" bn-onboard-custom bn-onboard-select-wallet-info"
You can’t perform that action at this time.
0 commit comments