fix(loyalty): убрать unused imports (TS6133)
Some checks are pending
Some checks are pending
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
91128a7ed0
commit
dc68c997c9
|
|
@ -9,7 +9,7 @@ import { Button } from '@/components/Button'
|
||||||
import { Modal } from '@/components/Modal'
|
import { Modal } from '@/components/Modal'
|
||||||
import { Field, TextInput, AsyncSelect, Select } from '@/components/Field'
|
import { Field, TextInput, AsyncSelect, Select } from '@/components/Field'
|
||||||
import { EmptyState } from '@/components/EmptyState'
|
import { EmptyState } from '@/components/EmptyState'
|
||||||
import { useCatalogList, useCatalogMutations } from '@/lib/useCatalog'
|
import { useCatalogList } from '@/lib/useCatalog'
|
||||||
|
|
||||||
const URL = '/api/loyalty/cards'
|
const URL = '/api/loyalty/cards'
|
||||||
|
|
||||||
|
|
@ -33,7 +33,6 @@ const blank = (): Form => ({ programId: '', counterpartyId: '', cardNumber: '' }
|
||||||
|
|
||||||
export function LoyaltyCardsPage() {
|
export function LoyaltyCardsPage() {
|
||||||
const list = useCatalogList<CardDto>(URL)
|
const list = useCatalogList<CardDto>(URL)
|
||||||
const { remove } = useCatalogMutations(URL, URL)
|
|
||||||
const [form, setForm] = useState<Form | null>(null)
|
const [form, setForm] = useState<Form | null>(null)
|
||||||
const [programs, setPrograms] = useState<ProgramOption[]>([])
|
const [programs, setPrograms] = useState<ProgramOption[]>([])
|
||||||
const [error, setError] = useState<string | null>(null)
|
const [error, setError] = useState<string | null>(null)
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
import { useState } from 'react'
|
import { useState } from 'react'
|
||||||
import { Plus, Trash2 } from 'lucide-react'
|
import { Plus, Trash2 } from 'lucide-react'
|
||||||
import { api } from '@/lib/api'
|
|
||||||
import { ListPageShell } from '@/components/ListPageShell'
|
import { ListPageShell } from '@/components/ListPageShell'
|
||||||
import { DataTable } from '@/components/DataTable'
|
import { DataTable } from '@/components/DataTable'
|
||||||
import { Pagination } from '@/components/Pagination'
|
import { Pagination } from '@/components/Pagination'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue