feat(SW-360): include signup form as a dynamic content
This commit is contained in:
committed by
Pontus Dreij
parent
367cab27ab
commit
f895cd2cb5
@@ -15,13 +15,16 @@ import NewPassword from "@/components/TempDesignSystem/Form/NewPassword"
|
||||
import Phone from "@/components/TempDesignSystem/Form/Phone"
|
||||
import Link from "@/components/TempDesignSystem/Link"
|
||||
import Body from "@/components/TempDesignSystem/Text/Body"
|
||||
import Title from "@/components/TempDesignSystem/Text/Title"
|
||||
import { toast } from "@/components/TempDesignSystem/Toasts"
|
||||
|
||||
import { RegisterSchema, registerSchema } from "./schema"
|
||||
|
||||
import styles from "./form.module.css"
|
||||
|
||||
export default function Form() {
|
||||
import type { RegisterFormProps } from "@/types/components/form/registerForm"
|
||||
|
||||
export default function Form({ link, subtitle, title }: RegisterFormProps) {
|
||||
const intl = useIntl()
|
||||
const methods = useForm<RegisterSchema>({
|
||||
defaultValues: {
|
||||
@@ -63,6 +66,7 @@ export default function Form() {
|
||||
|
||||
return (
|
||||
<section className={styles.container}>
|
||||
<Title as="h3">{title}</Title>
|
||||
<FormProvider {...methods}>
|
||||
<form
|
||||
className={styles.form}
|
||||
|
||||
Reference in New Issue
Block a user