added baha anyklmak, attributes

This commit is contained in:
Jelaletdin12
2026-04-30 10:44:08 +05:00
parent cc89455967
commit 9419ec0af0
24 changed files with 1207 additions and 939 deletions

View File

@@ -201,9 +201,9 @@ const ProductCard = ({
onMouseLeave={() => setIsHovered(false)}
>
<div className={styles.imageContainer}>
{(product.discount || calculatedDiscount) && (
{(product.discount > 0 || calculatedDiscount > 0) && (
<span className={styles.discountBadge}>
-{product.discount ?? calculatedDiscount}%
-{product.discount || calculatedDiscount}%
</span>
)}
{product.stock === 0 && (
@@ -221,7 +221,7 @@ const ProductCard = ({
<div className={styles.priceContainer}>
<div>
{isPriceZero(price_amount) ? (
<span className={styles.currentPrice}>Bahasyny anyklamaly</span>
<span className={styles.currentPrice}> {t("cart.pendingPriceTitle")}</span>
) : (
<>
<span className={styles.currentPrice}>{price_amount} m.</span>