From 5016bf8b476aa9742fa610d59eebbf7138d3d287 Mon Sep 17 00:00:00 2001 From: Pkpedram Date: Mon, 31 Jan 2022 16:12:29 +0330 Subject: [PATCH 1/5] Star Rating Value Math.random --- src/components/Product/index.js | 5 +---- src/components/StarRating/index.js | 4 ++-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/components/Product/index.js b/src/components/Product/index.js index a7f42ad..73dbd40 100644 --- a/src/components/Product/index.js +++ b/src/components/Product/index.js @@ -154,10 +154,7 @@ const ProductDesign = ({ {/* star */} {star && (
- + بر اساس {numberOfRegards} بررسی 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 ( Date: Mon, 31 Jan 2022 16:22:39 +0330 Subject: [PATCH 2/5] Home Page Grid + Product Page fixed --- src/components/Product/index.js | 7 ++++--- src/components/SalesContainer/index.js | 6 +++--- src/views/Home/Desktop/Part2/index.js | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/components/Product/index.js b/src/components/Product/index.js index 73dbd40..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 */}
diff --git a/src/components/SalesContainer/index.js b/src/components/SalesContainer/index.js index 3011835..23dcc38 100644 --- a/src/components/SalesContainer/index.js +++ b/src/components/SalesContainer/index.js @@ -29,8 +29,8 @@ const SalesContainer = ({

-

دوشنبه

-

کتاااابی

+

دوشنبه

+

کتاااابی

@@ -46,7 +46,7 @@ const SalesContainer = ({
- + { list?.map((product, index) => ( diff --git a/src/views/Home/Desktop/Part2/index.js b/src/views/Home/Desktop/Part2/index.js index c773ef3..3b189dc 100644 --- a/src/views/Home/Desktop/Part2/index.js +++ b/src/views/Home/Desktop/Part2/index.js @@ -52,7 +52,7 @@ const Part2 = (
- + { books?.slice(15,24).map((product, index) => ( From 57586469b6c4410b2d444027be1f16a1bdf76cfe Mon Sep 17 00:00:00 2001 From: Pkpedram Date: Mon, 31 Jan 2022 16:42:01 +0330 Subject: [PATCH 3/5] Sales Container Fixed --- src/components/SalesContainer/index.js | 12 +++++++----- src/views/Home/Desktop/Part2/index.js | 4 ++-- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/components/SalesContainer/index.js b/src/components/SalesContainer/index.js index 23dcc38..1043327 100644 --- a/src/components/SalesContainer/index.js +++ b/src/components/SalesContainer/index.js @@ -20,13 +20,14 @@ const SalesContainer = ({ }, []); return(
-
+
console.log(list)}>
-
+ {/*
*/}

دوشنبه

@@ -37,7 +38,7 @@ const SalesContainer = ({

بیش از ۵۰ کتاب تخفیف خورده

-
+
@@ -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/views/Home/Desktop/Part2/index.js b/src/views/Home/Desktop/Part2/index.js index 3b189dc..24b6292 100644 --- a/src/views/Home/Desktop/Part2/index.js +++ b/src/views/Home/Desktop/Part2/index.js @@ -25,7 +25,7 @@ const Part2 = (
-
+

@@ -47,7 +47,7 @@ const Part2 = ( color= "text-blueC0" onClick={() => null} radius={false} - twPaddings="py-4 px-12" + twPaddings="py-4 px-12 rounded" />

From 3cf7713f29bb0f70a62a1a13d8e855a1a65c483e Mon Sep 17 00:00:00 2001 From: Pkpedram Date: Mon, 31 Jan 2022 16:42:11 +0330 Subject: [PATCH 4/5] Footer Fixed --- src/components/Footer/index.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/Footer/index.js b/src/components/Footer/index.js index e612b5a..c836f52 100644 --- a/src/components/Footer/index.js +++ b/src/components/Footer/index.js @@ -21,10 +21,10 @@ const FooterDesign1 = ({ color, bg, links, hasHeader }) => {
-

+

7 روز هفته 24 ساعته

-

منتظر شنیدن صدای گرمتان هستیم

+

منتظر شنیدن صدای گرمتان هستیم

@@ -36,19 +36,19 @@ const FooterDesign1 = ({ color, bg, links, hasHeader }) => {
: null}