Skip to content

Commit 93bbf0f

Browse files
committed
wrap wallet name with LinkOverlay
1 parent 86eba6b commit 93bbf0f

File tree

1 file changed

+24
-11
lines changed
  • src/components/StartWithEthereumFlow/DownloadAWallet

1 file changed

+24
-11
lines changed

src/components/StartWithEthereumFlow/DownloadAWallet/index.tsx

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import { Wallet } from "@/lib/types"
55
import { Image } from "@/components/Image"
66
import { Button, ButtonLink } from "@/components/ui/buttons/Button"
77
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"
910
import { Tag } from "@/components/ui/tag"
1011

1112
import { trackCustomEvent } from "@/lib/utils/matomo"
@@ -74,15 +75,7 @@ const DownloadAWallet = ({
7475
{newToCryptoWallets.map((wallet) => (
7576
<LinkBox
7677
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"
8679
>
8780
<div className="flex flex-row items-center justify-between gap-2">
8881
<div className="flex w-full max-w-[200px] flex-row items-center gap-4">
@@ -94,8 +87,28 @@ const DownloadAWallet = ({
9487
height={30}
9588
/>
9689
</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>
98110
</div>
111+
99112
<ButtonLink href={wallet.url} variant="outline" size="sm">
100113
Get wallet
101114
</ButtonLink>

0 commit comments

Comments
 (0)