feat: add LocaleSwitcher component to LoginPage for improved localization support

This commit is contained in:
mlogclub
2026-05-30 20:40:55 +08:00
parent 2d1704854f
commit c31fdd7e00
+4
View File
@@ -1,3 +1,4 @@
import { LocaleSwitcher } from "@/components/locale-switcher"
import { LoginForm } from "@/components/login-form"
import { Suspense } from "react"
@@ -5,6 +6,9 @@ export default function LoginPage() {
return (
<div className="flex min-h-svh flex-col items-center justify-center bg-muted p-6 md:p-10">
<div className="w-full max-w-sm md:max-w-4xl">
<div className="mb-4 flex justify-end">
<LocaleSwitcher />
</div>
<Suspense fallback={<div className="min-h-96" />}>
<LoginForm />
</Suspense>