feat(SW-360): trigger validation on form submission

This commit is contained in:
Chuma McPhoy
2024-10-23 14:51:27 +02:00
parent 94744a4260
commit 1056eee7e9
2 changed files with 24 additions and 10 deletions

View File

@@ -3,7 +3,7 @@ import { redirect } from "next/navigation"
import { overview } from "@/constants/routes/myPages"
import { auth } from "@/auth"
import Form from "@/components/Forms/Signup"
import SignupForm from "@/components/Forms/Signup"
import { getLang } from "@/i18n/serverContext"
import { SignupFormWrapperProps } from "@/types/components/blocks/dynamicContent"
@@ -16,5 +16,5 @@ export default async function SignupFormWrapper({
// We don't want to allow users to access signup if they are already authenticated.
redirect(overview[getLang()])
}
return <Form {...dynamic_content} />
return <SignupForm {...dynamic_content} />
}