File tree Expand file tree Collapse file tree 2 files changed +29
-14
lines changed
Expand file tree Collapse file tree 2 files changed +29
-14
lines changed Original file line number Diff line number Diff line change @@ -29,17 +29,26 @@ const WalletListMetamask = () => {
2929 ) : (
3030 < >
3131 < Typography variant = "body1" > Metamask</ Typography >
32- < Link href = "https://metamask.io/" title = "Go to Metamask" >
33- < Launch />
34- </ Link >
35- < Button
36- sx = { { ml : "auto" } }
37- variant = "contained"
38- onClick = { ( ) => connectNEVM ( "metamask" ) }
39- disabled = { ! availableWallets . metamask }
40- >
41- { availableWallets . metamask ? "Connect" : "Not installed" }
42- </ Button >
32+ { availableWallets . metamask ? (
33+ < Button
34+ sx = { { ml : "auto" } }
35+ variant = "contained"
36+ onClick = { ( ) => connectNEVM ( "metamask" ) }
37+ >
38+ Connect
39+ </ Button >
40+ ) : (
41+ < Link
42+ href = "https://metamask.io/"
43+ title = "Go to Metamask"
44+ sx = { { ml : "auto" } }
45+ target = "_blank"
46+ >
47+ < Button variant = "contained" >
48+ Install < Launch />
49+ </ Button >
50+ </ Link >
51+ ) }
4352 </ >
4453 ) }
4554 </ Box >
Original file line number Diff line number Diff line change @@ -18,10 +18,16 @@ const InstallPaliWallet = () => {
1818 alt = "PaliWallet logo"
1919 />
2020 < Typography variant = "body1" > PaliWallet</ Typography >
21- < Link href = "https://paliwallet.com/" title = "Go to PaliWallet" >
22- < Launch />
21+ < Link
22+ href = "https://paliwallet.com/"
23+ title = "Go to PaliWallet"
24+ sx = { { ml : "auto" } }
25+ target = "_blank"
26+ >
27+ < Button variant = "contained" >
28+ Install < Launch />
29+ </ Button >
2330 </ Link >
24- < ConnectToPaliWallet />
2531 </ Box >
2632 ) ;
2733} ;
You can’t perform that action at this time.
0 commit comments