From f18d35c29b15a0c0c952e9b0d08c4d68ab210b3c Mon Sep 17 00:00:00 2001 From: "nabijonovdavronbek619@gmail.com" Date: Wed, 8 Apr 2026 11:14:22 +0500 Subject: [PATCH] certificate row added to payment modal --- src/features/modals/paymentModal/lib/types.ts | 1 + .../modals/paymentModal/ui/Pricesummary.tsx | 14 +++++++++++++- src/shared/config/i18n/messages/en.json | 1 + src/shared/config/i18n/messages/ru.json | 1 + src/shared/config/i18n/messages/uz.d.json.ts | 1 + src/shared/config/i18n/messages/uz.json | 1 + 6 files changed, 18 insertions(+), 1 deletion(-) diff --git a/src/features/modals/paymentModal/lib/types.ts b/src/features/modals/paymentModal/lib/types.ts index 9bacd42..c2d4c79 100644 --- a/src/features/modals/paymentModal/lib/types.ts +++ b/src/features/modals/paymentModal/lib/types.ts @@ -13,6 +13,7 @@ export type PaymentStatus = 'idle' | 'loading' | 'success' | 'error'; export interface PriceCalculate { service_fee: number; discount?: number; + certificate?: number; total_price: number; } diff --git a/src/features/modals/paymentModal/ui/Pricesummary.tsx b/src/features/modals/paymentModal/ui/Pricesummary.tsx index ed11757..d05be8a 100644 --- a/src/features/modals/paymentModal/ui/Pricesummary.tsx +++ b/src/features/modals/paymentModal/ui/Pricesummary.tsx @@ -62,12 +62,24 @@ export const PriceSummary = ({ currency="UZS" /> - {priceCalculate.discount && ( + {priceCalculate.discount ? ( + ) : ( + '' + )} + + {priceCalculate.certificate ? ( + + ) : ( + '' )}