staynomad / Nomad-Front

Prop-tech startup disrupting the budget homesharing industry
https://visitnomad.com
6 stars 0 forks source link

Re-implement Explore filter #419

Closed aidenszeto closed 3 years ago

aidenszeto commented 3 years ago

We currently have a filter component (/src/components/matches/filter.component.js), but it is outdated and incomplete so it would be a good idea to remake the component.

Desired behavior: on the Explore and "show all" pages, we should add a filter UI - could be a modal popup or could be displayed directly on the page - that contains the following elements:

For the functionality, we can use the searchFilteredListings redux action and pass in a filterState depending on what is selected through the UI. For example, if Max Price is selected as 100 and Min Guests is selected as 5, the filter state should be

{ startingPriceClicked: true, startingPrice: 100, minGuestsClicked: true, minGuests: 5, }