diff --git a/src/app/(site)/page.tsx b/src/app/(site)/page.tsx
index b4014b90..38055447 100644
--- a/src/app/(site)/page.tsx
+++ b/src/app/(site)/page.tsx
@@ -1,34 +1,12 @@
-import GuestView from "@/components/home/guest-view";
-import UserView from "@/components/home/user-view";
-import { auth } from "@/lib/auth";
-import { prisma } from "@/lib/prisma";
-
-export const dynamic = "force-dynamic";
-
-export default async function HomePage() {
- const session = await auth();
-
- if (!session?.user) {
- return ;
- }
-
- const dbUser = await prisma.user
- .findUnique({
- where: { id: Number(session.user.id) },
- select: { username: true, look: true, motto: true },
- })
- .catch(() => null);
-
- if (!dbUser) {
- return
User not found.
;
- }
-
- return (
-
- );
+export default function Home() {
+ return (
+
+ );
}
diff --git a/src/app/(site)/register/page.tsx b/src/app/(site)/register/page.tsx
index a0099cfd..d5488c38 100644
--- a/src/app/(site)/register/page.tsx
+++ b/src/app/(site)/register/page.tsx
@@ -1,36 +1,31 @@
-import { getTranslations } from "next-intl/server";
-import { headers } from "next/headers";
-import { RegisterForm } from "@/components/auth/register-form";
-import { captchaConfig } from "@/lib/services/captcha";
-import { siteSettings } from "@/lib/services/site-settings";
-
-export const revalidate = 300;
-
-export default async function RegisterPage({
- searchParams,
-}: {
- searchParams: Promise<{ error?: string }>;
-}) {
- const t = await getTranslations("pages.register");
- const { error } = await searchParams;
- const nonce = (await headers()).get("x-nonce") ?? undefined;
-
- const [hotelName, captcha] = await Promise.all([
- siteSettings.get("hotel_name", "Atom"),
- captchaConfig(),
- ]);
-
- return (
-
-
-
{t("title")}
-
-
-
- );
+export default function Register() {
+ return (
+
+ );
}