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:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user