File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
packages/walletkit/src/components/WalletSelectorModal/WalletStepSelect Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 1
1
import styled from "@emotion/styled" ;
2
- import type { WalletProviderInfo } from "@saberhq/use-solana" ;
2
+ import type {
3
+ DefaultWalletType ,
4
+ WalletProviderInfo ,
5
+ } from "@saberhq/use-solana" ;
3
6
import React , { useMemo } from "react" ;
4
7
5
8
interface Props {
9
+ type : DefaultWalletType ;
6
10
info : WalletProviderInfo ;
7
11
8
12
onInstall ?: ( info : WalletProviderInfo ) => void ;
9
13
onSelect ?: ( ) => void ;
10
14
}
11
15
12
16
export const WalletProviderOption : React . FC < Props > = ( {
17
+ type,
13
18
info,
14
19
onInstall,
15
20
onSelect,
@@ -37,6 +42,7 @@ export const WalletProviderOption: React.FC<Props> = ({
37
42
38
43
return (
39
44
< Wrapper
45
+ id = { `gokiWalletKitProviderOption-${ type } ` }
40
46
role = "button"
41
47
onClick = { ( e ) => {
42
48
e . stopPropagation ( ) ;
Original file line number Diff line number Diff line change @@ -100,10 +100,11 @@ export const WalletStepSelect: React.FC<Props> = ({
100
100
: prov . mustInstall || ! prov . info . isInstalled
101
101
)
102
102
. map ( ( fullInfo ) => {
103
- const { info : provider } = fullInfo ;
103
+ const { info : provider , type } = fullInfo ;
104
104
return (
105
105
< WalletProviderOption
106
106
key = { provider . url }
107
+ type = { type }
107
108
info = { provider }
108
109
onSelect = { ( ) => {
109
110
onSelect ?.( fullInfo ) ;
You can’t perform that action at this time.
0 commit comments