From c6b542bd950a05fd7abe77c29adfa206c1e9883e Mon Sep 17 00:00:00 2001 From: "kirill.komarov" Date: Wed, 13 May 2026 22:16:00 +0500 Subject: [PATCH] =?UTF-8?q?fix:=20TypeScript=20errors=20=E2=80=94=20Nomina?= =?UTF-8?q?timItem=20import,=20unknown=20ReactNode,=20unused=20deliveryTyp?= =?UTF-8?q?e,=20effect=20generics,=20export=20name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../features/address-map-picker/ui/AddressMapPicker.tsx | 2 +- .../src/features/order-payment/ui/OrderPaymentSection.tsx | 3 +-- client/src/features/order-payment/ui/PaymentDialog.tsx | 4 ++-- client/src/features/product-review/ui/ReviewDialog.tsx | 8 ++++---- client/src/pages/me/ui/sections/OrderDetailPage.tsx | 3 +-- client/src/shared/lib/create-error-store.ts | 4 ++-- client/src/shared/ui/AdminTable/index.ts | 2 +- 7 files changed, 12 insertions(+), 14 deletions(-) diff --git a/client/src/features/address-map-picker/ui/AddressMapPicker.tsx b/client/src/features/address-map-picker/ui/AddressMapPicker.tsx index dfb8786..ce1b8e9 100644 --- a/client/src/features/address-map-picker/ui/AddressMapPicker.tsx +++ b/client/src/features/address-map-picker/ui/AddressMapPicker.tsx @@ -14,7 +14,7 @@ import Typography from '@mui/material/Typography' import * as maplibregl from 'maplibre-gl' import Map, { Marker, type MapMouseEvent, type MapRef } from 'react-map-gl/maplibre' import { reverseGeocode, searchPlaces } from '../api/map-geocoding' -import type { LatLng } from '../model/types' +import type { LatLng, NominatimItem } from '../model/types' export function AddressMapPicker(props: { value: { lat: number; lng: number } | null diff --git a/client/src/features/order-payment/ui/OrderPaymentSection.tsx b/client/src/features/order-payment/ui/OrderPaymentSection.tsx index 44ae854..54cb084 100644 --- a/client/src/features/order-payment/ui/OrderPaymentSection.tsx +++ b/client/src/features/order-payment/ui/OrderPaymentSection.tsx @@ -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) diff --git a/client/src/features/order-payment/ui/PaymentDialog.tsx b/client/src/features/order-payment/ui/PaymentDialog.tsx index 73dd832..767b62a 100644 --- a/client/src/features/order-payment/ui/PaymentDialog.tsx +++ b/client/src/features/order-payment/ui/PaymentDialog.tsx @@ -127,11 +127,11 @@ export function PaymentDialog({ open, isPending, error, onClose, onSubmit }: Pro {clientError} )} - {error && ( + {error ? ( {paySubmitErrorMessage(error)} - )} + ) : null}