new FilterPage(props)
Modal which opens when user wants to filter the results of their dishes based on ratings, time, price, and category
Parameters:
Name | Type | Description |
---|---|---|
props |
FilterPageProps |
- Source:
Type Definitions
FilterPageProps
Properties:
Name | Type | Description |
---|---|---|
navigation |
Object |
Stack Navigation object |
categoriesSet |
Set.<String> |
Set of all the current categories selected for the categories filter |
setCategoriesSet |
function |
Function passed from parent to change the Set of categories selected for filter |
categoriesArr |
Array.<boolean> |
Array that represents whether a category button is colored red or green |
setCategoriesArr |
function |
Function passed from parent that changes which buttons are colored red or green |
ratingFilter |
Array.<boolean> |
Array that represents whether a rating button is colored red or green, and which rating setting the filter is currently in |
setRatingFilter |
function |
Function passed from parent that changes the raingFilter array to set the ratings filter |
timeFilter |
Array.<boolean> |
Array that represents whether a time filter button is colored red or green |
setTimeFilter |
function |
Function passed from parent that changes the time filter for which buttons are colored |
priceFilter |
Array.<boolean> |
Array that represents whether a price filter button is red or green |
setPriceFilter |
function |
Function passed from parent that changes the price filter |
update |
function |
Function passed from the parent that updates the component based on the filter settings |
closeModal |
function |
Function passed from the parent that closes the modal |
prices |
Array.<number> |
Array that represents a range of prices that shows up in filtered results |
time |
Array.<number> |
Array that represents a range of times in minutes for filtered results |
setPrices |
function |
Function passed from the parent that updates the range of acceptable prices in the filtered results |
setTime |
function |
Function passed from the parent that updates the range of acceptable times in the filtered results |
- Source: