Skip to content

Commit 0f6da7d

Browse files
Merge pull request #65 from ERFouX/main
Fix: Remove tos from Footer and Redirect tos to 404 using useRouter
2 parents 5202406 + f3a2566 commit 0f6da7d

2 files changed

Lines changed: 18 additions & 11 deletions

File tree

components/Footer.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export function Footer() {
1818
<Link href="/team">{t('navigation.team')}</Link>
1919
<Link href="/privacy">{t('footer.privacyPolicy')}</Link>
2020
<Link href="/whitepaper">{t('footer.whitepaper')}</Link>
21-
<Link href="/tos">{t('footer.termsOfService')}</Link>
21+
{/* <Link href="/tos">{t('footer.termsOfService')}</Link> */}
2222
</nav>
2323
<div className="flex flex-wrap justify-center items-center gap-4">
2424
<Link href="https://youtube.com/@ParchLinux">

pages/tos.jsx

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
1-
import { useTranslation } from "@/utils/translation"
2-
import { Card } from "@/components/ui/card"
3-
import tos from "@/data/tos"
1+
import { useTranslation } from "@/utils/translation";
2+
// import { Card } from "@/components/ui/card";
3+
// import tos from "@/data/tos";
44
import Markdown from "react-markdown";
5+
import { useEffect } from "react";
6+
import { useRouter } from "next/router";
57

68
export default function DownloadPage() {
79
const { lang } = useTranslation();
10+
const router = useRouter();
811

9-
return (
10-
<main className="p-4 md:p-8 lg:p-16">
11-
<Card className="prose lg:prose-lg dark:prose-invert !container mx-auto p-12">
12-
<Markdown>{tos[lang]}</Markdown>
13-
</Card>
14-
</main>
15-
)
12+
useEffect(() => {
13+
router.push('/404');
14+
}, [router]);
15+
16+
// return (
17+
// <main className="p-4 md:p-8 lg:p-16">
18+
// <Card className="prose lg:prose-lg dark:prose-invert !container mx-auto p-12">
19+
// <Markdown>{tos[lang]}</Markdown>
20+
// </Card>
21+
// </main>
22+
// );
1623
}

0 commit comments

Comments
 (0)