mobil uyumu
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
import { login } from './actions'
|
||||
|
||||
export default function LoginPage({
|
||||
export default async function LoginPage({
|
||||
searchParams,
|
||||
}: {
|
||||
searchParams: { error?: string }
|
||||
searchParams: Promise<{ error?: string }>
|
||||
}) {
|
||||
const params = await searchParams;
|
||||
|
||||
return (
|
||||
<div className="flex min-h-screen flex-col items-center justify-center p-6 bg-slate-50 dark:bg-zinc-950">
|
||||
<div className="w-full max-w-md p-10 space-y-10 bg-white dark:bg-zinc-900 rounded-[2.5rem] shadow-sm border border-slate-100 dark:border-zinc-800">
|
||||
@@ -19,7 +21,7 @@ export default function LoginPage({
|
||||
</div>
|
||||
|
||||
<form className="space-y-8" action={login}>
|
||||
{searchParams?.error && (
|
||||
{params?.error && (
|
||||
<div className="p-4 text-sm font-bold text-rose-600 bg-rose-50 dark:bg-rose-500/10 border border-rose-100 dark:border-rose-500/20 rounded-2xl text-center">
|
||||
E-posta adresi veya şifre hatalı.
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user