mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 18:52:06 +00:00
- Updated BeerPostHeader in /id page to use semantic HTML tags - Removed the getServerSidesProps fn in /login and /register. Moved the redirect logic over to the client, will redirect on the client side. - Added delete BeerPost option on the edit page.
32 lines
837 B
TypeScript
32 lines
837 B
TypeScript
import RegisterUserForm from '@/components/RegisterUserForm';
|
|
import FormPageLayout from '@/components/ui/forms/FormPageLayout';
|
|
import Layout from '@/components/ui/Layout';
|
|
|
|
import useRedirectWhenLoggedIn from '@/hooks/useRedirectIfLoggedIn';
|
|
import { NextPage } from 'next';
|
|
import Head from 'next/head';
|
|
import { BiUser } from 'react-icons/bi';
|
|
|
|
const RegisterUserPage: NextPage = () => {
|
|
useRedirectWhenLoggedIn();
|
|
|
|
return (
|
|
<Layout>
|
|
<Head>
|
|
<title>Register User</title>
|
|
<meta name="description" content="Register a new user" />
|
|
</Head>
|
|
<FormPageLayout
|
|
headingText="Register User"
|
|
headingIcon={BiUser}
|
|
backLink="/"
|
|
backLinkText="Back to home"
|
|
>
|
|
<RegisterUserForm />
|
|
</FormPageLayout>
|
|
</Layout>
|
|
);
|
|
};
|
|
|
|
export default RegisterUserPage;
|