Improve MineGeo interface and functionality

This commit is contained in:
2026-10-06 19:24:41 +05:00
parent 7404f1dc1c
commit 233e4d57f0
67 changed files with 3053 additions and 643 deletions

View File

@@ -1,3 +1,4 @@
import { getI18n } from "@/lib/i18n";
import { Header, Footer } from "@/components/Shell";
import { Pairing } from "@/components/Pairing";
import { SignIn } from "@/components/SignIn";
@@ -7,6 +8,7 @@ export default async function Pair({
}: {
searchParams: Promise<{ code?: string }>;
}) {
const { t } = await getI18n();
const { code } = await searchParams;
const account = await user();
return (
@@ -16,7 +18,7 @@ export default async function Pair({
{!account ? (
<>
<p className="muted">
Sign in first, then reopen the pairing link from Minecraft.
{t("Sign in first, then reopen the pairing link from Minecraft.")}
</p>
<SignIn
next={
@@ -29,7 +31,7 @@ export default async function Pair({
) : code && /^[A-F0-9]{8}$/.test(code) ? (
<Pairing code={code} />
) : (
<p>Open the pairing link shown by your Fabric mod.</p>
<p>{t("Open the pairing link shown by your Fabric mod.")}</p>
)}
</main>
<Footer />