fix(SW-360): signup form props

This commit is contained in:
Chuma McPhoy
2024-10-08 14:56:35 +02:00
parent e84b3ca980
commit 2fce70e866
6 changed files with 9 additions and 19 deletions

View File

@@ -6,13 +6,11 @@ import { auth } from "@/auth"
import Form from "@/components/Forms/Register"
import { getLang } from "@/i18n/serverContext"
import type { RegisterFormProps } from "@/types/components/form/registerForm"
import { SignupFormWrapperProps } from "@/types/components/blocks/dynamicContent"
export default async function SignupFormWrapper({
dynamic_content,
}: {
dynamic_content: RegisterFormProps
}) {
}: SignupFormWrapperProps) {
const session = await auth()
if (session) {
// We don't want to allow users to access signup if they are already authenticated.