- {likeBtn && (
+ {/* {likeBtn && (
setCount(count + 1)}
/>
setCount(count - 1)}
/>
- )}
+ )} */}
{counterIncreaseBtn && (
0 ? { color: "green" } : { color: "red" }}
+ style={
+ count > -1
+ ? count === 0
+ ? { color: "gray" }
+ : { color: "green" }
+ : { color: "red" }
+ }
>
{count}
diff --git a/src/components/productDesign/ProductDesign.js b/src/components/productDesign/ProductDesign.js
index 6313cc5..affc410 100644
--- a/src/components/productDesign/ProductDesign.js
+++ b/src/components/productDesign/ProductDesign.js
@@ -1,3 +1,4 @@
+import React, { useEffect, useState } from "react";
import "./ProductDesign.scss";
import StarRating from "../starRating/StarRating";
@@ -39,6 +40,13 @@ const ProductDesign = ({
rangeWidth,
addToCartHolder,
}) => {
+ const [progressFlag, setProgressFlag] = useState(false);
+ useEffect(() => {
+ setTimeout(() => {
+ setProgressFlag(true);
+ }, 500);
+ }, []);
+
return (
{/* title holder */}
@@ -90,19 +98,19 @@ const ProductDesign = ({
{/* icons on image */}
{discountPricePercent && (
-
+
)}
{likeBtn && (
-
+
)}
{discount && (
-
+
)}
@@ -241,7 +249,10 @@ const ProductDesign = ({
{rangeHolder && (
)}
@@ -293,7 +304,7 @@ ProductDesign.defaultProps = {
productCatTextColor: "text-darkCrimsonTextColor",
// برای درصد دادن به عرض رنج
- rangeWidth: "w-44",
+ rangeWidth: "60%",
//دی ای وی که محصول داخلش است میتونیم بهش بوردر بدیم
productHolderBorder: "border",
productHolderBorderColor: "border-grayBorderColor",
diff --git a/src/components/vodProductDesign/VodProductDesign.js b/src/components/vodProductDesign/VodProductDesign.js
index 16d66ed..47358d5 100644
--- a/src/components/vodProductDesign/VodProductDesign.js
+++ b/src/components/vodProductDesign/VodProductDesign.js
@@ -80,19 +80,19 @@ const VodProductDesign = ({
{/* icons on image */}
{discountPricePercent && (
-