Remove theme toggle from the login page

Keep it in the main app header only.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-15 21:17:49 +02:00
co-authored by Claude Sonnet 5
parent 79a7c8f5cb
commit c3312f5dc6
+1 -5
View File
@@ -4,7 +4,6 @@ import type { Metadata } from "next";
import { redirect } from "next/navigation";
import { getConfig } from "@/lib/config/load";
import { getSession } from "@/lib/auth/session";
import { ThemeToggle } from "@/components/layout/theme-toggle";
import { LoginForm } from "./login-form";
export const metadata: Metadata = { title: "Sign in" };
@@ -17,10 +16,7 @@ export default async function LoginPage() {
if (session.userId) redirect("/");
return (
<div className="relative flex min-h-full flex-1 items-center justify-center px-4">
<div className="absolute top-4 right-4">
<ThemeToggle />
</div>
<div className="flex min-h-full flex-1 items-center justify-center px-4">
<LoginForm />
</div>
);