Skip to content

Commit

Permalink
Change anchor tag to Next.js Link
Browse files Browse the repository at this point in the history
Use Link so state will persist when user navigates
to linked page.
  • Loading branch information
CodeWritingCow committed May 28, 2024
1 parent b2fedfd commit b88fb5b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import { useCookieContext } from "@/context/CookieContext";
import CookieConsentBanner from "./CookieConsentBanner";
import Link from "next/link";

const Footer = () => {
let { setShouldShowBanner } = useCookieContext();
Expand Down Expand Up @@ -36,9 +37,9 @@ const Footer = () => {
<span className="max-sm:hidden"></span>

<li className="base-sm underline text-gray-600 mx-auto">
<a href="/legal-disclaimer" className="hover:text-gray-800">
<Link href="/legal-disclaimer" className="hover:text-gray-800">
Legal Disclaimer
</a>
</Link>
</li>

<span className="max-sm:hidden"></span>
Expand Down

0 comments on commit b88fb5b

Please sign in to comment.