#2, 11 - восстановлены фильтры на фронте, фикс сброса фильтров

This commit is contained in:
Kayashov.SM
2025-04-27 17:21:27 +04:00
parent 5285dbf279
commit 39d3a4bafc
3 changed files with 25 additions and 24 deletions

View File

@@ -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>