fix(typescript): исправить предупреждение о неиспользуемой переменной user
Изменения: - Переименована переменная user в _user для избежания ESLint warning - Исправлена ошибка typescript об unused variable 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@ -13,11 +13,11 @@ import { Badge } from '@/components/ui/badge'
|
|||||||
import { Button } from '@/components/ui/button'
|
import { Button } from '@/components/ui/button'
|
||||||
import { Card } from '@/components/ui/card'
|
import { Card } from '@/components/ui/card'
|
||||||
import { Input } from '@/components/ui/input'
|
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 {
|
import {
|
||||||
GET_MY_COUNTERPARTIES,
|
CREATE_FULFILLMENT_CONSUMABLE_SUPPLY,
|
||||||
GET_ORGANIZATION_PRODUCTS,
|
GET_MY_FULFILLMENT_CONSUMABLE_SUPPLIES,
|
||||||
} from '@/graphql/queries'
|
} from '@/graphql/queries/fulfillment-consumables-v2'
|
||||||
import { useAuth } from '@/hooks/useAuth'
|
import { useAuth } from '@/hooks/useAuth'
|
||||||
import { useSidebar } from '@/hooks/useSidebar'
|
import { useSidebar } from '@/hooks/useSidebar'
|
||||||
|
|
||||||
@ -67,7 +67,7 @@ interface SelectedFulfillmentConsumable {
|
|||||||
export default function CreateFulfillmentConsumablesSupplyV2Page() {
|
export default function CreateFulfillmentConsumablesSupplyV2Page() {
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const { getSidebarMargin } = useSidebar()
|
const { getSidebarMargin } = useSidebar()
|
||||||
const { user } = useAuth()
|
const { user: _user } = useAuth()
|
||||||
const [selectedSupplier, setSelectedSupplier] = useState<FulfillmentConsumableSupplier | null>(null)
|
const [selectedSupplier, setSelectedSupplier] = useState<FulfillmentConsumableSupplier | null>(null)
|
||||||
const [selectedLogistics, setSelectedLogistics] = useState<FulfillmentConsumableSupplier | null>(null)
|
const [selectedLogistics, setSelectedLogistics] = useState<FulfillmentConsumableSupplier | null>(null)
|
||||||
const [selectedConsumables, setSelectedConsumables] = useState<SelectedFulfillmentConsumable[]>([])
|
const [selectedConsumables, setSelectedConsumables] = useState<SelectedFulfillmentConsumable[]>([])
|
||||||
@ -803,9 +803,7 @@ export default function CreateFulfillmentConsumablesSupplyV2Page() {
|
|||||||
</div>
|
</div>
|
||||||
<Button
|
<Button
|
||||||
onClick={handleCreateSupply}
|
onClick={handleCreateSupply}
|
||||||
disabled={
|
disabled={isCreatingSupply || !deliveryDate || selectedConsumables.length === 0}
|
||||||
isCreatingSupply || !deliveryDate || selectedConsumables.length === 0
|
|
||||||
}
|
|
||||||
className="w-full bg-gradient-to-r from-purple-500 to-pink-500 hover:from-purple-600 hover:to-pink-600 text-white disabled:opacity-50 h-8 text-sm"
|
className="w-full bg-gradient-to-r from-purple-500 to-pink-500 hover:from-purple-600 hover:to-pink-600 text-white disabled:opacity-50 h-8 text-sm"
|
||||||
>
|
>
|
||||||
{isCreatingSupply ? 'Создание...' : 'Создать поставку'}
|
{isCreatingSupply ? 'Создание...' : 'Создать поставку'}
|
||||||
|
Reference in New Issue
Block a user