Skip to content

Commit

Permalink
External link: rewrite in TS
Browse files Browse the repository at this point in the history
  • Loading branch information
stscoundrel committed Feb 24, 2024
1 parent 2abd670 commit 2df0ae8
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/components/ExternalLink/index.js

This file was deleted.

16 changes: 16 additions & 0 deletions src/components/ExternalLink/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
interface ExternalLinkProps{
href: string,
title: string,
}

export default function ExternalLink({ href, title }: ExternalLinkProps) {
return (
<a
href={href}
target="_blank"
rel="noopener noreferrer"
>
{title}
</a>
)
}

0 comments on commit 2df0ae8

Please sign in to comment.