From f3285d9139b75d409ab6293bc1276f02cd941483 Mon Sep 17 00:00:00 2001 From: Veronika Smirnova Date: Mon, 25 Aug 2025 08:15:57 +0300 Subject: [PATCH] =?UTF-8?q?fix(typescript):=20=D0=B8=D1=81=D0=BF=D1=80?= =?UTF-8?q?=D0=B0=D0=B2=D0=B8=D1=82=D1=8C=20=D0=BF=D1=80=D0=B5=D0=B4=D1=83?= =?UTF-8?q?=D0=BF=D1=80=D0=B5=D0=B6=D0=B4=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BE?= =?UTF-8?q?=20=D0=BD=D0=B5=D0=B8=D1=81=D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D1=83?= =?UTF-8?q?=D0=B5=D0=BC=D0=BE=D0=B9=20=D0=BF=D0=B5=D1=80=D0=B5=D0=BC=D0=B5?= =?UTF-8?q?=D0=BD=D0=BD=D0=BE=D0=B9=20user?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Изменения: - Переименована переменная user в _user для избежания ESLint warning - Исправлена ошибка typescript об unused variable 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .../create-fulfillment-consumables-supply-v2.tsx | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/components/fulfillment-supplies/create-fulfillment-consumables-supply-v2.tsx b/src/components/fulfillment-supplies/create-fulfillment-consumables-supply-v2.tsx index 01b47a2..405f9e3 100644 --- a/src/components/fulfillment-supplies/create-fulfillment-consumables-supply-v2.tsx +++ b/src/components/fulfillment-supplies/create-fulfillment-consumables-supply-v2.tsx @@ -13,11 +13,11 @@ import { Badge } from '@/components/ui/badge' import { Button } from '@/components/ui/button' import { Card } from '@/components/ui/card' import { Input } from '@/components/ui/input' -import { CREATE_FULFILLMENT_CONSUMABLE_SUPPLY, GET_MY_FULFILLMENT_CONSUMABLE_SUPPLIES } from '@/graphql/queries/fulfillment-consumables-v2' +import { GET_MY_COUNTERPARTIES, GET_ORGANIZATION_PRODUCTS } from '@/graphql/queries' import { - GET_MY_COUNTERPARTIES, - GET_ORGANIZATION_PRODUCTS, -} from '@/graphql/queries' + CREATE_FULFILLMENT_CONSUMABLE_SUPPLY, + GET_MY_FULFILLMENT_CONSUMABLE_SUPPLIES, +} from '@/graphql/queries/fulfillment-consumables-v2' import { useAuth } from '@/hooks/useAuth' import { useSidebar } from '@/hooks/useSidebar' @@ -67,7 +67,7 @@ interface SelectedFulfillmentConsumable { export default function CreateFulfillmentConsumablesSupplyV2Page() { const router = useRouter() const { getSidebarMargin } = useSidebar() - const { user } = useAuth() + const { user: _user } = useAuth() const [selectedSupplier, setSelectedSupplier] = useState(null) const [selectedLogistics, setSelectedLogistics] = useState(null) const [selectedConsumables, setSelectedConsumables] = useState([]) @@ -803,9 +803,7 @@ export default function CreateFulfillmentConsumablesSupplyV2Page() {