From b43269073fadc788b3523777e21177290254c7c7 Mon Sep 17 00:00:00 2001 From: Bivekich Date: Thu, 7 Aug 2025 21:59:52 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=BF=D1=82=D0=B8=D0=BC=D0=B8=D0=B7?= =?UTF-8?q?=D0=B0=D1=86=D0=B8=D1=8F=20=D0=B8=D0=BC=D0=BF=D0=BE=D1=80=D1=82?= =?UTF-8?q?=D0=B0=20=D0=B8=20=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D1=82=D0=B5=D0=BA=D1=81=D1=82=D0=B0?= =?UTF-8?q?=20=D0=B2=20=D0=BA=D0=BE=D0=BC=D0=BF=D0=BE=D0=BD=D0=B5=D0=BD?= =?UTF-8?q?=D1=82=D0=B5=20CreateSuppliersSupplyPage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Упорядочен импорт компонентов из 'lucide-react' и 'apollo/client' - Исправлено значение атрибута value в SelectItem на "no-fulfillment" для корректного отображения отсутствия фулфилмент-центров 🤖 Generated with [Claude Code](https://claude.ai/code) --- .../supplies/create-suppliers-supply-page.tsx | 38 ++++++++----------- 1 file changed, 15 insertions(+), 23 deletions(-) diff --git a/src/components/supplies/create-suppliers-supply-page.tsx b/src/components/supplies/create-suppliers-supply-page.tsx index 108a5b7..489f033 100644 --- a/src/components/supplies/create-suppliers-supply-page.tsx +++ b/src/components/supplies/create-suppliers-supply-page.tsx @@ -1,26 +1,18 @@ 'use client' -import { useQuery, useMutation } from '@apollo/client' +import { useMutation, useQuery } from '@apollo/client' import { - ArrowLeft, - Building2, - Search, - Package, - Plus, - Minus, - ShoppingCart, - Calendar, - Truck, - Box, - FileText, - AlertCircle, - Settings, - DollarSign, - X, + ArrowLeft, + Building2, + Package, + Plus, + Search, + ShoppingCart, + X } from 'lucide-react' import Image from 'next/image' import { useRouter } from 'next/navigation' -import React, { useState } from 'react' +import { useState } from 'react' import { toast } from 'sonner' import { Sidebar } from '@/components/dashboard/sidebar' @@ -32,11 +24,11 @@ import { Input } from '@/components/ui/input' import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select' import { CREATE_SUPPLY_ORDER } from '@/graphql/mutations' import { - GET_MY_COUNTERPARTIES, - GET_ORGANIZATION_PRODUCTS, - GET_COUNTERPARTY_SERVICES, - GET_COUNTERPARTY_SUPPLIES, - GET_AVAILABLE_SUPPLIES_FOR_RECIPE, + GET_AVAILABLE_SUPPLIES_FOR_RECIPE, + GET_COUNTERPARTY_SERVICES, + GET_COUNTERPARTY_SUPPLIES, + GET_MY_COUNTERPARTIES, + GET_ORGANIZATION_PRODUCTS, } from '@/graphql/queries' import { useAuth } from '@/hooks/useAuth' import { useSidebar } from '@/hooks/useSidebar' @@ -929,7 +921,7 @@ export function CreateSuppliersSupplyPage() { )) ) : ( - + Нет доступных фулфилмент-центров )}