feat : update
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import { connection } from "next/server";
|
||||
import { SiteHeader } from "@/components/public/site-header";
|
||||
import { RegistrationOtpForm } from "@/components/auth/registration-otp-form";
|
||||
import { safeAuthReturnPath } from "@/lib/auth/return-path";
|
||||
|
||||
export const instant = false;
|
||||
|
||||
export default async function CheckEmailPage({ searchParams }: PageProps<"/check-email">) {
|
||||
await connection();
|
||||
const { email, next, setup } = await searchParams;
|
||||
return <div className="min-h-svh"><SiteHeader /><main className="grid min-h-[calc(100svh-4rem)] place-items-center p-4">
|
||||
<RegistrationOtpForm email={typeof email === "string" ? email : ""}
|
||||
nextPath={safeAuthReturnPath(next)} setup={setup === "1"} />
|
||||
</main></div>;
|
||||
}
|
||||
Reference in New Issue
Block a user