Skip to content

Commit d9e8a1a

Browse files
authored
Uses a tag instead of link to open link in new tabs for attestations (#140)
1 parent 40abd58 commit d9e8a1a

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/components/attestations/privateAttestationDialogContent.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,15 @@ export function PrivateAttestationDialogContent({
3535
<div>
3636
Your private attestation has been created 🥳
3737
<div className="pt-6">
38-
<Link
38+
<a
39+
target="_blank"
3940
href={`${easscanUrl}/attestation/view/${registeredAttestationUuid}`}
41+
rel="noopener noreferrer"
4042
>
4143
<Button variant={"outline"} onClick={() => {}}>
4244
Open in EAS
4345
</Button>
44-
</Link>
46+
</a>
4547
<div className="pt-6">
4648
<Button
4749
onClick={() => {

src/components/attestations/publicAttestationDialogContent.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,15 @@ export function PublicAttestationDialogContent({
3232
<div>
3333
Your public attestation has been created 🥳
3434
<div className="pt-6">
35-
<Link
35+
<a
36+
target="_blank"
3637
href={`${easscanUrl}/attestation/view/${registeredAttestationUuid}`}
38+
rel="noopener noreferrer"
3739
>
3840
<Button variant={"outline"} onClick={() => {}}>
3941
Open in EAS
4042
</Button>
41-
</Link>
43+
</a>
4244
</div>
4345
</div>
4446
) : (

0 commit comments

Comments
 (0)