🐛 fix: replace anchor tags with Link components for improved routing in user subscription and footer

This commit is contained in:
web
2025-12-15 06:50:17 -08:00
parent 46cbdeafd4
commit 227e922958
2 changed files with 22 additions and 16 deletions
+5 -4
View File
@@ -1,5 +1,6 @@
"use client";
import { Link } from "@tanstack/react-router";
import { Separator } from "@workspace/ui/components/separator";
import { Icon } from "@workspace/ui/composed/icon";
import { Fragment, useMemo } from "react";
@@ -112,12 +113,12 @@ export default function Footer() {
<strong className="text-foreground">{site.site_name}</strong> ©{" "}
{t("footer.copyright", "All rights reserved")}.
<div>
<a className="underline" href="/tos">
<Link className="underline" to="/tos">
{t("footer.tos", "Terms of Service")}
</a>
<a className="ml-2 underline" href="/privacy-policy">
</Link>
<Link className="ml-2 underline" to="/privacy-policy">
{t("footer.privacyPolicy", "Privacy Policy")}
</a>
</Link>
</div>
</div>
</div>