Added an autofill box for the Category field in the page for adding new items. This was done by adding a function to get a list of all unique categories from the DB and then passing it down to the itemForm component. We opted to use a conditionally rendered "This will add a new item" field instead of adding an "Add ____" to the filter options.
Relevant issue(s)
hack4impact-utk/Maintenance-Team#12
Questions
Let me know if I didn't resolve the merge conflict correctly (commit 2/2). Thanks!
Type of change
[x] New feature (non-breaking change which adds functionality)
Checklist:
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
Description
Added an autofill box for the Category field in the page for adding new items. This was done by adding a function to get a list of all unique categories from the DB and then passing it down to the itemForm component. We opted to use a conditionally rendered "This will add a new item" field instead of adding an "Add ____" to the filter options.
Relevant issue(s)
Questions
Type of change
Checklist: