summary number
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user