fix: TypeScript errors — NominatimItem import, unknown ReactNode, unused deliveryType, effect generics, export name

This commit is contained in:
kirill.komarov
2026-05-13 22:16:00 +05:00
parent a06f9cf2c4
commit c6b542bd95
7 changed files with 12 additions and 14 deletions
@@ -8,14 +8,13 @@ import { PaymentDialog } from './PaymentDialog'
type Props = {
status: string
paymentMethod: string | null
deliveryType: string
totalCents: number
isPayPending: boolean
payError: unknown
onPay: (params: { detail: string; receiptFile: File | null }) => void
}
export function OrderPaymentSection({ status, paymentMethod, deliveryType, isPayPending, payError, onPay }: Props) {
export function OrderPaymentSection({ status, paymentMethod, isPayPending, payError, onPay }: Props) {
const payOnPickup = (paymentMethod ?? 'online') === 'on_pickup'
const [payModalOpen, setPayModalOpen] = useState(false)