reach4help / covidhelphub-frontend

MIT License
1 stars 3 forks source link

Create data to generate BeneficiariesRequestComponent #8

Closed jensren closed 3 years ago

jensren commented 3 years ago

What: FormSection[] JSON data, initial values object, and Yup schema for BeneficiariesRequestComponent

Why: to generate BeneficiariesRequestComponent dynamically. Currently, it is hard-coded

Implementation details: review VolunteerFormData and look at how to create Yup schemas. Ensure FormSection[] JSON follows the types defined in formik/types.ts.

For the grocery checkboxes (e.g. if you want to buy frozen foods it would pop out a text input), Ethan and I felt this wasn't a great design. We thought it would be better if the entire grocery list was just a text box, so people can paste their grocery list in from somewhere, or just write it in the text box. We thought it would be better to keep the form simpler for now. :)