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 { redirect } from "next/navigation";
|
||||||
import { getConfig } from "@/lib/config/load";
|
import { getConfig } from "@/lib/config/load";
|
||||||
import { getSession } from "@/lib/auth/session";
|
import { getSession } from "@/lib/auth/session";
|
||||||
import { ThemeToggle } from "@/components/layout/theme-toggle";
|
|
||||||
import { LoginForm } from "./login-form";
|
import { LoginForm } from "./login-form";
|
||||||
|
|
||||||
export const metadata: Metadata = { title: "Sign in" };
|
export const metadata: Metadata = { title: "Sign in" };
|
||||||
@@ -17,10 +16,7 @@ export default async function LoginPage() {
|
|||||||
if (session.userId) redirect("/");
|
if (session.userId) redirect("/");
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="relative flex min-h-full flex-1 items-center justify-center px-4">
|
<div className="flex min-h-full flex-1 items-center justify-center px-4">
|
||||||
<div className="absolute top-4 right-4">
|
|
||||||
<ThemeToggle />
|
|
||||||
</div>
|
|
||||||
<LoginForm />
|
<LoginForm />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user