2021-07-31 15:57:43 +00:00
|
|
|
import { useRouter, BlitzPage, Routes } from "blitz";
|
2021-07-31 14:33:18 +00:00
|
|
|
|
2021-07-31 15:57:43 +00:00
|
|
|
import BaseLayout from "../../core/layouts/base-layout";
|
|
|
|
import { SignupForm } from "../components/signup-form";
|
2021-07-31 14:33:18 +00:00
|
|
|
|
|
|
|
const SignupPage: BlitzPage = () => {
|
2021-07-31 15:57:43 +00:00
|
|
|
const router = useRouter();
|
2021-07-31 14:33:18 +00:00
|
|
|
|
|
|
|
return (
|
|
|
|
<div>
|
|
|
|
<SignupForm onSuccess={() => router.push(Routes.Home())} />
|
|
|
|
</div>
|
2021-07-31 15:57:43 +00:00
|
|
|
);
|
|
|
|
};
|
2021-07-31 14:33:18 +00:00
|
|
|
|
2021-07-31 15:57:43 +00:00
|
|
|
SignupPage.redirectAuthenticatedTo = "/";
|
|
|
|
SignupPage.getLayout = (page) => <BaseLayout title="Sign Up">{page}</BaseLayout>;
|
2021-07-31 14:33:18 +00:00
|
|
|
|
2021-07-31 15:57:43 +00:00
|
|
|
export default SignupPage;
|