mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-14 10:53:44 +00:00
register success page
This commit is contained in:
23
apps/login/app/(login)/register/success/page.tsx
Normal file
23
apps/login/app/(login)/register/success/page.tsx
Normal file
@@ -0,0 +1,23 @@
|
||||
import { Button, ButtonVariants } from "#/ui/Button";
|
||||
import { NextPage, NextPageContext } from "next";
|
||||
import Link from "next/link";
|
||||
import { useSearchParams } from "next/navigation";
|
||||
|
||||
type Props = {
|
||||
searchParams: { [key: string]: string | string[] | undefined };
|
||||
};
|
||||
export default async function Page({ searchParams }: Props) {
|
||||
// const query = useSearchParams();
|
||||
console.log(searchParams);
|
||||
return (
|
||||
<div className="flex flex-col items-center space-y-4">
|
||||
<h1>Register successful</h1>
|
||||
<p className="ztdl-p">A user has successfully been registered.</p>
|
||||
|
||||
{`userId: ${searchParams["userid"]}`}
|
||||
<Link href="/register">
|
||||
<Button variant={ButtonVariants.Primary}>go back</Button>
|
||||
</Link>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user