hunterwilkins2 / bulldog-books

An online bookstore for UGA CSCI 4050. Created with React and Node.
MIT License
2 stars 3 forks source link

Manage Promotions #40

Closed hunterwilkins2 closed 3 years ago

hunterwilkins2 commented 3 years ago

Requirments

nssafir commented 3 years ago

Any ideas why i'd be getting this error when i put a button inside a formik (@GaryBarnes13 ) image

GaryBarnes13 commented 3 years ago

Can you attach your code, or let me know what file it is in? I have not received this error before, but it sounds like you might just be missing some syntax formik is expecting. For some simple examples of Formik, see the login page and here. From what I can tell by googling this, it really doesn't look like a formik issue, but rather, a general React issue.

nssafir commented 3 years ago

@GaryBarnes13 I pushed the code in the managePromotions branch. It's in the ManagePromotions.js file.

GaryBarnes13 commented 3 years ago

Looks like you're missing quite a bit of syntax that Formik is expecting, specifically under the tag. Look at some of the other examples of the forms I built to see this, the best one to check would probably be the registration form. Also, you shouldn't have to disable no-unused-vars for those lines, since all of those values are needed to build a form. See here for an overview on forms with Formik if my examples aren't sufficient

nssafir commented 3 years ago

Looks like you're missing quite a bit of syntax that Formik is expecting, specifically under the tag. Look at some of the other examples of the forms I built to see this, the best one to check would probably be the registration form. Also, you shouldn't have to disable no-unused-vars for those lines, since all of those values are needed to build a form. See here for an overview on forms with Formik if my examples aren't sufficient

Thanks Gary, I was able to get it resolved

nssafir commented 3 years ago

@galaxyproduction could you look at the server.js code on the managePromotions branch? I am gettign the following error after adding the two lines about the promotions route.

image

hunterwilkins2 commented 3 years ago

Its routes with an 's'.... lol