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 b3cee00 commit b2afc7e
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 b2afc7e

Please sign in to comment.