From 8abd0e448b4c3a936ddd3a50ac24e8537d050985 Mon Sep 17 00:00:00 2001 From: Samandar Turgunboyev Date: Mon, 9 Feb 2026 18:10:13 +0500 Subject: [PATCH] pyment_type status uodate --- src/features/product/ui/Product.tsx | 28 ++++++++-------------------- 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/src/features/product/ui/Product.tsx b/src/features/product/ui/Product.tsx index 9c06bea..95d3411 100644 --- a/src/features/product/ui/Product.tsx +++ b/src/features/product/ui/Product.tsx @@ -20,7 +20,6 @@ import { ProductCard } from '@/widgets/categories/ui/product-card'; import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query'; import { AxiosError } from 'axios'; import { - Banknote, ChevronLeft, ChevronRight, Heart, @@ -288,17 +287,11 @@ const ProductDetail = () => {

{data?.short_name}

{/* IMPROVED UPDATED_AT WARNING */} - {data?.updated_at && ( -
-

- ⚠️ - {t("Diqqat! Mahsulot narxi o'zgargan bo'lishi mumkin")} -

-

- {t("So'nggi yangilanish:")}{' '} - - {formatDate.format(data.updated_at, 'DD-MM-YYYY')} - + {data?.updated_at && data.payment_type === 'cash' && ( +

+

+ {t("Narxi o'zgargan bo'lishi mumkin")} • {t('Yangilangan')}:{' '} + {formatDate.format(data.updated_at, 'DD-MM-YYYY')}

)} @@ -356,12 +349,7 @@ const ProductDetail = () => { />
-
+
{t('Bepul yetkazib berish')} @@ -370,7 +358,7 @@ const ProductDetail = () => { {t('Kafolat')}
- {data?.payment_type && ( + {/* {data?.payment_type && (
@@ -378,7 +366,7 @@ const ProductDetail = () => { ? t('Naqd bilan olinadi') : t("Pul o'tkazish yo'li bilan olinadi")}
- )} + )} */}