Commit b462193 1 parent 12f1815 commit b462193 Copy full SHA for b462193
File tree 5 files changed +27
-24
lines changed
packages/sado-connect/src
components/SelectWalletModal
5 files changed +27
-24
lines changed Original file line number Diff line number Diff line change @@ -6,15 +6,13 @@ interface WalletButtonProp {
6
6
name : string ;
7
7
onConnect : ( ) => Promise < boolean > ;
8
8
icon : string ;
9
- imageClassOverride ?: string ;
10
9
setErrorMessage : ( msg : string ) => void ;
11
10
}
12
11
13
12
export function WalletButton ( {
14
13
name,
15
14
onConnect,
16
15
icon,
17
- imageClassOverride,
18
16
setErrorMessage,
19
17
} : WalletButtonProp ) {
20
18
const [ loading , setLoading ] = useState ( false ) ;
@@ -35,11 +33,7 @@ export function WalletButton({
35
33
}
36
34
} }
37
35
>
38
- < img
39
- src = { icon }
40
- className = { imageClassOverride }
41
- alt = { `Connect ${ name } Wallet` }
42
- />
36
+ < img width = { 40 } src = { icon } alt = { `Connect ${ name } Wallet` } />
43
37
< span className = "wallet-option-label" > { name } </ span >
44
38
{ loading ? (
45
39
< img
Original file line number Diff line number Diff line change @@ -197,7 +197,6 @@ export function SelectWalletModal({
197
197
< hr className = "horizontal-separator" />
198
198
< WalletButton
199
199
name = "Xverse"
200
- imageClassOverride = "xverse-icon"
201
200
onConnect = { onConnectXverseWallet }
202
201
icon = { XverseWalletIcon }
203
202
setErrorMessage = { setErrorMessage }
Original file line number Diff line number Diff line change 127
127
cursor : wait !important ;
128
128
}
129
129
130
- .xverse-icon {
131
- width : 30px ;
132
- padding : 5px ;
133
- }
134
-
135
130
.wallet-identifier-container {
136
131
position : relative;
137
132
display : inline-block;
141
136
position : absolute;
142
137
bottom : 4px ;
143
138
right : 0 ;
144
- width : 7 px ;
139
+ width : 12 px ;
145
140
border-radius : 50% ;
146
141
background-color : black;
147
142
object-fit : cover;
148
- padding : 3px ;
149
143
}
150
144
151
145
.sado-connect-wallet-modal .wallet-option-button : hover {
You can’t perform that action at this time.
0 commit comments