@@ -5,7 +5,8 @@ import { Wallet } from "@/lib/types"
5
5
import { Image } from "@/components/Image"
6
6
import { Button , ButtonLink } from "@/components/ui/buttons/Button"
7
7
import Checkbox from "@/components/ui/checkbox"
8
- import { LinkBox } from "@/components/ui/link-box"
8
+ import InlineLink from "@/components/ui/Link"
9
+ import { LinkBox , LinkOverlay } from "@/components/ui/link-box"
9
10
import { Tag } from "@/components/ui/tag"
10
11
11
12
import { trackCustomEvent } from "@/lib/utils/matomo"
@@ -74,15 +75,7 @@ const DownloadAWallet = ({
74
75
{ newToCryptoWallets . map ( ( wallet ) => (
75
76
< LinkBox
76
77
key = { wallet . name }
77
- className = "flex cursor-pointer flex-col gap-4 border-b border-body-light bg-background p-4 last:border-b-0 hover:bg-background-highlight sm:p-6"
78
- onClick = { ( ) => {
79
- window . open ( wallet . url , "_blank" )
80
- trackCustomEvent ( {
81
- eventCategory : "start page" ,
82
- eventAction : "get wallet" ,
83
- eventName : wallet . name ,
84
- } )
85
- } }
78
+ className = "flex flex-col gap-4 border-b border-body-light bg-background p-4 last:border-b-0 hover:bg-background-highlight sm:p-6"
86
79
>
87
80
< div className = "flex flex-row items-center justify-between gap-2" >
88
81
< div className = "flex w-full max-w-[200px] flex-row items-center gap-4" >
@@ -94,8 +87,28 @@ const DownloadAWallet = ({
94
87
height = { 30 }
95
88
/>
96
89
</ div >
97
- < p className = "text-body" > { wallet . name } </ p >
90
+ < p >
91
+ < LinkOverlay
92
+ className = "text-body no-underline hover:text-body"
93
+ asChild
94
+ >
95
+ < InlineLink
96
+ href = { wallet . url }
97
+ hideArrow
98
+ onClick = { ( ) => {
99
+ trackCustomEvent ( {
100
+ eventCategory : "start page" ,
101
+ eventAction : "get wallet" ,
102
+ eventName : wallet . name ,
103
+ } )
104
+ } }
105
+ >
106
+ { wallet . name }
107
+ </ InlineLink >
108
+ </ LinkOverlay >
109
+ </ p >
98
110
</ div >
111
+
99
112
< ButtonLink href = { wallet . url } variant = "outline" size = "sm" >
100
113
Get wallet
101
114
</ ButtonLink >
0 commit comments