#2, 11 - восстановлены фильтры на фронте, фикс сброса фильтров
This commit is contained in:
@@ -39,10 +39,6 @@ export function FilterBlock({filter, handleFilterChange, handleClearFilter, barm
|
||||
{
|
||||
name: "Безалкогольный",
|
||||
id: "alcohol2"
|
||||
},
|
||||
{
|
||||
name: "Опционально",
|
||||
id: "alcohol3"
|
||||
}];
|
||||
const ingredientCount = [
|
||||
{
|
||||
@@ -148,10 +144,10 @@ export function FilterBlock({filter, handleFilterChange, handleClearFilter, barm
|
||||
filterValue={filter.tags} filterName={"tags"}/>)}
|
||||
{/*Фильтр по нехватке ингредиентов*/}
|
||||
{/*todo: доделать эти фильтры в беке*/}
|
||||
{/*{(barmen && all) && (<CheckMarks rows={ingredientCount} name={"Не хватает ингредиентов"}*/}
|
||||
{/* handleChange={handleFilterChange}*/}
|
||||
{/* nonMulti nullValue*/}
|
||||
{/* filterValue={filter.iCount} filterName={"iCount"}/>)}*/}
|
||||
{(barmen && all) && (<CheckMarks rows={ingredientCount} name={"Не хватает ингредиентов"}
|
||||
handleChange={handleFilterChange}
|
||||
nonMulti nullValue
|
||||
filterValue={filter.iCount} filterName={"iCount"}/>)}
|
||||
<Button onClick={() => handleClearFilter()}>Сбросить</Button>
|
||||
</Grid>
|
||||
</Box>
|
||||
|
||||
Reference in New Issue
Block a user