(
{item.name}
@@ -341,7 +343,7 @@ Navbar.defaultProps = {
},
{
link: "/filter",
- name: "دسته بندیها",
+ name: "دسته بندی ها",
},
{
link: "/contact-us",
diff --git a/src/components/Product/index.js b/src/components/Product/index.js
index a7f42ad..2707ffa 100644
--- a/src/components/Product/index.js
+++ b/src/components/Product/index.js
@@ -49,14 +49,15 @@ const ProductDesign = ({
}) => {
const [isHovering, setIsHovering] = useState(false);
return (
-
-
setIsHovering(true)}
- onMouseLeave={() => setIsHovering(false)}>
+
setIsHovering(true)}
+ onMouseLeave={() => setIsHovering(false)}
>
{/* product image */}
@@ -154,10 +155,7 @@ const ProductDesign = ({
{/* star */}
{star && (
-
+
بر اساس {numberOfRegards} بررسی
diff --git a/src/components/SalesContainer/index.js b/src/components/SalesContainer/index.js
index 3011835..1043327 100644
--- a/src/components/SalesContainer/index.js
+++ b/src/components/SalesContainer/index.js
@@ -20,24 +20,25 @@ const SalesContainer = ({
}, []);
return(
-
+
console.log(list)}>
-
+ {/*
*/}
- دوشنبه
- کتاااابی
+ دوشنبه
+ کتاااابی
بیش از ۵۰ کتاب تخفیف خورده
-
+
@@ -46,7 +47,7 @@ const SalesContainer = ({
-
+
{
list?.map((product, index) => (
@@ -67,6 +68,7 @@ const SalesContainer = ({
big
starRate={Math.floor(Math.random() * 5) + 1}
discountPricePercent
+ hoverMode='blue'
/>
))}
diff --git a/src/components/StarRating/index.js b/src/components/StarRating/index.js
index 458feb9..25be9d4 100644
--- a/src/components/StarRating/index.js
+++ b/src/components/StarRating/index.js
@@ -3,8 +3,8 @@ import StarRatingComponent from "react-star-rating-component";
import starGrayIcon from '../../assets/icons/starGray.svg';
import starYellowIcon from '../../assets/icons/starYellow.svg';
-function StarRating() {
- const [rate, setRating] = useState(2);
+function StarRating({value}) {
+ const [rate, setRating] = useState(value);
return (
-
+
@@ -47,12 +47,12 @@ const Part2 = (
color= "text-blueC0"
onClick={() => null}
radius={false}
- twPaddings="py-4 px-12"
+ twPaddings="py-4 px-12 rounded"
/>
-
+
{
books?.slice(15,24).map((product, index) => (