shellphone.app/app/auth/pages/signup.tsx

22 lines
517 B
TypeScript
Raw Normal View History

2021-08-01 03:05:40 +00:00
import type { BlitzPage } from "blitz";
import { useRouter, Routes } from "blitz";
2021-07-31 14:33:18 +00:00
import BaseLayout from "../../core/layouts/base-layout";
import { SignupForm } from "../components/signup-form";
2021-07-31 14:33:18 +00:00
2021-08-01 03:05:40 +00:00
const SignUp: BlitzPage = () => {
const router = useRouter();
2021-07-31 14:33:18 +00:00
return (
<div>
2021-08-01 03:05:40 +00:00
<SignupForm onSuccess={() => router.push(Routes.StepOne())} />
2021-07-31 14:33:18 +00:00
</div>
);
};
2021-07-31 14:33:18 +00:00
2021-08-01 03:05:40 +00:00
SignUp.redirectAuthenticatedTo = Routes.StepOne();
2021-07-31 14:33:18 +00:00
2021-08-01 03:05:40 +00:00
SignUp.getLayout = (page) => <BaseLayout title="Sign Up">{page}</BaseLayout>;
export default SignUp;