fantasy-manager/pages/error/update.tsx
Lukas Schaefer 33a307d19a
Some checks failed
Build / build (pull_request) Successful in 1m2s
Cypress / cypress (pull_request) Successful in 2m31s
Build / build (push) Successful in 1m11s
Cypress / cypress (push) Has been cancelled
First commit for moving git instances
Signed-off-by: Lukas Schaefer <lukas@lschaefer.xyz>
2026-07-30 19:08:51 -04:00

48 lines
1.4 KiB
TypeScript

import Menu from "../../components/Menu";
import Head from "next/head";
import BugReport from "../../components/BugReport";
import Link from "../../components/Link";
import { useContext } from "react";
import { TranslateContext } from "../../Modules/context";
import { GetStaticProps } from "next";
import { getData } from "../api/theme";
export default function Home() {
const t = useContext(TranslateContext);
return (
<>
<Head>
<title>{t("Failure to get Version Data")}</title>
</Head>
<Menu />
<h1>{t("Failure to get Version Data")}</h1>
<h2>{t("What is Wrong")}</h2>
<p>
{t(
"The server cannot contact update server to check if this is the latest version of the software. ",
)}
</p>
<h2>{t("How to Fix")}</h2>
<p>
{t(
"This error is not critical and just means that this website can not check if this is actually the latest version. ",
)}
<Link
href="https://git.lschaefer.xyz/lukasdotcom/fantasy-manager/releases"
rel="noopener noreferrer"
target="_blank"
>
{t(
"You can manually check the releases here to see if this is the latest release. ",
)}
</Link>
</p>
<BugReport />
</>
);
}
export const getStaticProps: GetStaticProps = async (context) => {
return {
props: { t: await getData(context) },
};
};