Skip to content

Commit d68446f

Browse files
committed
use Image for internal navigation
1 parent 4d705a9 commit d68446f

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

client/src/pages/games/[id].tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import Image from "next/image";
2+
import Link from "next/link";
23
import { useRouter } from "next/router";
34
import React from "react";
45
import { SocialIcon } from "react-social-icons";
@@ -133,12 +134,12 @@ export default function IndividualGamePage() {
133134
key={c.member_id}
134135
className="flex items-center gap-x-2"
135136
>
136-
<a
137+
<Link
137138
href={`/members/${c.member_id}`}
138139
className="text-primary hover:underline"
139140
>
140141
{c.name}
141-
</a>
142+
</Link>
142143
{Array.isArray(c.social_media) &&
143144
c.social_media.map((sm) => (
144145
<SocialIcon
@@ -181,12 +182,12 @@ export default function IndividualGamePage() {
181182
</td>
182183
<td className="py-1 text-right sm:py-2">
183184
{eventID && eventName ? (
184-
<a
185+
<Link
185186
href={`/events/${eventID}`}
186187
className="text-primary hover:underline"
187188
>
188189
{eventName}
189-
</a>
190+
</Link>
190191
) : (
191192
<span className="text-muted-foreground">
192193
No past/upcoming event

0 commit comments

Comments
 (0)