diff --git a/front/src/app/pages/BarChangePage.js b/front/src/app/pages/BarChangePage.js index 36a416a..3af3b93 100644 --- a/front/src/app/pages/BarChangePage.js +++ b/front/src/app/pages/BarChangePage.js @@ -29,6 +29,7 @@ export function BarChangePage() { .catch(() => { createError("Ошибка получения списков") }) + // eslint-disable-next-line }, []); const changeHandler = (bar) => { createWarning("Дождитесь окончания операции") diff --git a/front/src/app/pages/cocktails/CocktailsPageContent.js b/front/src/app/pages/cocktails/CocktailsPageContent.js index b2375db..546eea3 100644 --- a/front/src/app/pages/cocktails/CocktailsPageContent.js +++ b/front/src/app/pages/cocktails/CocktailsPageContent.js @@ -14,7 +14,6 @@ import {useUser} from "../../../hooks/useUser"; import {blue} from "@mui/material/colors"; import UpIcon from "@mui/icons-material/KeyboardArrowUp"; import {sortList} from "../../../components/cocktails/sortingList"; -import Button from "@mui/material/Button"; import {useSelect} from "../../../hooks/useSelect"; import Paper from "@mui/material/Paper"; import CheckMarks from "../../../components/cocktails/CheckMarks"; diff --git a/front/src/components/cocktails/EditCocktailReceipt.js b/front/src/components/cocktails/EditCocktailReceipt.js index 6cd7fd1..81be8d4 100644 --- a/front/src/components/cocktails/EditCocktailReceipt.js +++ b/front/src/components/cocktails/EditCocktailReceipt.js @@ -27,6 +27,7 @@ export function EditCocktailReceipt({receipt, handler}) { api().get(requests.unit) .then((r) => setUnits(r.data.sort(getComparator("asc", "name")))) .catch(() => createError("Ошибка получения единиц измерения")) + // eslint-disable-next-line }, []); const selectHandler = (name, value) => { diff --git a/front/src/components/cocktails/FilterBlock.js b/front/src/components/cocktails/FilterBlock.js index b814cf5..bbddeda 100644 --- a/front/src/components/cocktails/FilterBlock.js +++ b/front/src/components/cocktails/FilterBlock.js @@ -13,14 +13,13 @@ import {useEffect, useState} from "react"; import {requests} from "../../requests"; import {useAlert} from "../../hooks/useAlert"; import {api} from "../../lib/clients/api"; -import {sortList} from "./sortingList"; export function FilterBlock({filter, handleFilterChange, handleClearFilter, barmen}) { const {createError} = useAlert(); const [glass, setGlass] = useState([]); const [category, setCategory] = useState([]); const alcohol = ['Алкогольный', 'Безалкогольный']; - const ingredientCount = [1,2,3,4,5]; + const ingredientCount = [1, 2, 3, 4, 5]; const sort = ['Название по возрастанию', 'Название по убыванию']; useEffect(() => { @@ -100,9 +99,9 @@ export function FilterBlock({filter, handleFilterChange, handleClearFilter, barm filterValue={filter.glass} filterName={"glass"} identity/>)} {/*Фильтр по нехватке ингредиентов*/} {(barmen && filter.all) && ()} + handleChange={handleFilterChange} + nonMulti nullValue identity + filterValue={filter.iCount} filterName={"iCount"}/>)}