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 ? ( + + ) : ( + '' )}