Closed brianjhanson closed 4 years ago
Deploy request for rebuild-black-business accepted.
Accepted with commit f3a310c866c7afb434893f9108681c811643ae3b
https://app.netlify.com/sites/rebuild-black-business/deploys/5fb18f86a6110a000766f6a4
@magnificode added a ticket for Formik + Yup over here. My first story here and it's not really a user focused story so please don't hesitate to let me know if I should add more detail.
This started out as a request to help users remember to put
http://
andhttps://
in their website addresses. This also adds a rough system for validating forms in general.When a user submits the form, we run all of the values through a
validateSignUpForm
function which will return errors in an object with each input's key as a property. Something like:We then set this object to an
errors
state and use that to check when fields have errors we need to show.Fixes #379
Pages/Interfaces that will change
Screenshots / video of changes
Error when no protocol is present
Updated error display throughout the form
Gif of error experience
Steps to test
Additional notes
FormControl
element which updates the structure of the form a bit