refactor: use next links (#8344)

* chore(website): use next links

* chore: fix deploy check

* chore: use ligher syntax highlighter
This commit is contained in:
Suneet Tipirneni
2022-07-24 09:14:18 -04:00
committed by GitHub
parent 8e520f946a
commit 335695c698
6 changed files with 29 additions and 21 deletions

View File

@@ -1,3 +1,4 @@
import Link from 'next/link';
import type { TokenDocumentation } from '~/util/parse.server';
export interface HyperlinkedTextProps {
@@ -17,9 +18,9 @@ export function HyperlinkedText({ tokens }: HyperlinkedTextProps) {
{tokens.map((token) => {
if (token.path) {
return (
<a key={token.text} href={token.path}>
<Link key={token.text} href={token.path}>
{token.text}
</a>
</Link>
);
}