summary number

This commit is contained in:
hamid zarghami
2025-12-07 14:01:43 +03:30
parent fea922a2fa
commit b3209aafd3
@@ -87,11 +87,19 @@ export const SummarySection = ({ cartModal, onToggleCartModal }: SummarySectionP
<span className=''>{t("SectionSummary.SumOfItemsLabel")}</span>
<span className='font-medium place-self-end '>{formatPrice(subTotal)} T</span>
<span className=''>{t("SectionSummary.DeliveryLabel")}</span>
<span className='font-medium place-self-end '>{formatPrice(deliveryFee)} T</span>
<span className='text-emerald-600'>{t("SectionSummary.DiscountLabel")}</span>
<span className='font-medium place-self-end text-emerald-600'>{formatPrice(totalDiscount)} T</span>
<span className=''>{t("SectionSummary.TaxLabel")}</span>
<span className='font-medium place-self-end '>{formatPrice(tax)} T</span>
<span className='font-medium place-self-end '>{deliveryFee === 0 ? 'رایگان' : formatPrice(deliveryFee) + ' T'}</span>
{totalDiscount > 0 && (
<>
<span className=''>{t("SectionSummary.DiscountLabel")}</span>
<span className='font-medium place-self-end '>{formatPrice(totalDiscount)} T</span>
</>
)}
{tax > 0 && (
<>
<span className=''>{t("SectionSummary.TaxLabel")}</span>
<span className='font-medium place-self-end '>{formatPrice(tax)} T</span>
</>
)}
<span className='font-medium '>{t("SectionSummary.TotalLabel")}</span>
<span className='font-bold place-self-end'>{formatPrice(total)} T</span>
</div>