Add titles to form data and display them dynamically

Incorporated 'title' property into form data objects for dynamic rendering in the GenericForm component. This enhancement facilitates the use of specific titles for different forms, improving readability and user experience.
This commit is contained in:
2024-08-07 00:41:11 +02:00
parent f52201b683
commit 973b6b5e7d
4 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ const GenericForm = (formData: FormData) => {
return (
<div className="container">
<div>
<h1>Contact Form</h1>
<h1>{formData.title}</h1>
</div>
<div>
<Formik