(Due to @MichalPorag's instructions, I left out the search functionality). Also due to inactivity, I deleted this repo last week and had to recreate the components from scratch 😬, but I didn't want to lose this chance for a PR. Lesson learned.
This PR adds a dynamic dropdown component that sifts through people. To avoid adding too many conditionals in the people.map, I took an abstract route and decided an array with all the filters is the way to go. This way, any future contributor can simply add a similar set of data and all filtering capabilities for that new dataset will be automatically enabled, as well as a new dropdown component representing that data (with all included functionality).
(Due to @MichalPorag's instructions, I left out the search functionality). Also due to inactivity, I deleted this repo last week and had to recreate the components from scratch 😬, but I didn't want to lose this chance for a PR. Lesson learned.
This PR adds a dynamic dropdown component that sifts through people. To avoid adding too many conditionals in the
people.map
, I took an abstract route and decided an array with all the filters is the way to go. This way, any future contributor can simply add a similar set of data and all filtering capabilities for that new dataset will be automatically enabled, as well as a new dropdown component representing that data (with all included functionality).