Оптимизация импорта и исправление текста в компоненте CreateSuppliersSupplyPage
- Упорядочен импорт компонентов из 'lucide-react' и 'apollo/client' - Исправлено значение атрибута value в SelectItem на "no-fulfillment" для корректного отображения отсутствия фулфилмент-центров 🤖 Generated with [Claude Code](https://claude.ai/code)
This commit is contained in:
@ -1,26 +1,18 @@
|
|||||||
'use client'
|
'use client'
|
||||||
|
|
||||||
import { useQuery, useMutation } from '@apollo/client'
|
import { useMutation, useQuery } from '@apollo/client'
|
||||||
import {
|
import {
|
||||||
ArrowLeft,
|
ArrowLeft,
|
||||||
Building2,
|
Building2,
|
||||||
Search,
|
|
||||||
Package,
|
Package,
|
||||||
Plus,
|
Plus,
|
||||||
Minus,
|
Search,
|
||||||
ShoppingCart,
|
ShoppingCart,
|
||||||
Calendar,
|
X
|
||||||
Truck,
|
|
||||||
Box,
|
|
||||||
FileText,
|
|
||||||
AlertCircle,
|
|
||||||
Settings,
|
|
||||||
DollarSign,
|
|
||||||
X,
|
|
||||||
} from 'lucide-react'
|
} from 'lucide-react'
|
||||||
import Image from 'next/image'
|
import Image from 'next/image'
|
||||||
import { useRouter } from 'next/navigation'
|
import { useRouter } from 'next/navigation'
|
||||||
import React, { useState } from 'react'
|
import { useState } from 'react'
|
||||||
import { toast } from 'sonner'
|
import { toast } from 'sonner'
|
||||||
|
|
||||||
import { Sidebar } from '@/components/dashboard/sidebar'
|
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 { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select'
|
||||||
import { CREATE_SUPPLY_ORDER } from '@/graphql/mutations'
|
import { CREATE_SUPPLY_ORDER } from '@/graphql/mutations'
|
||||||
import {
|
import {
|
||||||
GET_MY_COUNTERPARTIES,
|
GET_AVAILABLE_SUPPLIES_FOR_RECIPE,
|
||||||
GET_ORGANIZATION_PRODUCTS,
|
|
||||||
GET_COUNTERPARTY_SERVICES,
|
GET_COUNTERPARTY_SERVICES,
|
||||||
GET_COUNTERPARTY_SUPPLIES,
|
GET_COUNTERPARTY_SUPPLIES,
|
||||||
GET_AVAILABLE_SUPPLIES_FOR_RECIPE,
|
GET_MY_COUNTERPARTIES,
|
||||||
|
GET_ORGANIZATION_PRODUCTS,
|
||||||
} from '@/graphql/queries'
|
} from '@/graphql/queries'
|
||||||
import { useAuth } from '@/hooks/useAuth'
|
import { useAuth } from '@/hooks/useAuth'
|
||||||
import { useSidebar } from '@/hooks/useSidebar'
|
import { useSidebar } from '@/hooks/useSidebar'
|
||||||
@ -929,7 +921,7 @@ export function CreateSuppliersSupplyPage() {
|
|||||||
</SelectItem>
|
</SelectItem>
|
||||||
))
|
))
|
||||||
) : (
|
) : (
|
||||||
<SelectItem value="" disabled>
|
<SelectItem value="no-fulfillment" disabled>
|
||||||
Нет доступных фулфилмент-центров
|
Нет доступных фулфилмент-центров
|
||||||
</SelectItem>
|
</SelectItem>
|
||||||
)}
|
)}
|
||||||
|
Reference in New Issue
Block a user