fix: replace a with Link
This commit is contained in:
parent
893756be44
commit
e502e5256c
@ -1,5 +1,6 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
|
import Link from "next/link";
|
||||||
import HoverLink from "@/components/HoverLink";
|
import HoverLink from "@/components/HoverLink";
|
||||||
import { usePathname } from "next/navigation";
|
import { usePathname } from "next/navigation";
|
||||||
|
|
||||||
@ -9,7 +10,7 @@ export default function NavBar() {
|
|||||||
return (
|
return (
|
||||||
<header className={"w-full flex flex-row items-end justify-between"}>
|
<header className={"w-full flex flex-row items-end justify-between"}>
|
||||||
<h1 className={"text-5xl text-stone-200 font-rokkitt font-bold"}>
|
<h1 className={"text-5xl text-stone-200 font-rokkitt font-bold"}>
|
||||||
<a href="/">Racinfo</a>
|
<Link href="/">Racinfo</Link>
|
||||||
</h1>
|
</h1>
|
||||||
<nav className={"flex flex-row items-center gap-4 mb-2"}>
|
<nav className={"flex flex-row items-center gap-4 mb-2"}>
|
||||||
<HoverLink
|
<HoverLink
|
||||||
|
Loading…
x
Reference in New Issue
Block a user