mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 01:53:30 +01:00
refactor: use next links (#8344)
* chore(website): use next links * chore: fix deploy check * chore: use ligher syntax highlighter
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user