Replaced the contact form with a generic form component to support multiple form configurations. Moved validation schema and form data to a new structure, allowing dynamic form rendering. Updated the App component to utilize this generic approach for handling different forms.
13 lines
283 B
TypeScript
13 lines
283 B
TypeScript
import {FormProperties} from "./formInterfaces";
|
|
import {contact} from "./data/contact";
|
|
|
|
const formProperties: FormProperties[] = [
|
|
{
|
|
path: 'contact',
|
|
formData: contact
|
|
},
|
|
]
|
|
|
|
export function getFormProperties(): FormProperties[] {
|
|
return formProperties
|
|
} |