From 50543dec50e84f26253c6d3029e7090369bf4e92 Mon Sep 17 00:00:00 2001 From: Pedram Keshavarzi Date: Tue, 25 Jan 2022 14:50:12 +0330 Subject: [PATCH] Side Bar Filtering Works But Has Errors (Not Loading The Data) --- src/components/Checkbox/index.js | 2 +- .../VerticalExpandableProductFilter/index.js | 6 +- .../Product/Desktop/ProductOverAll/index.js | 96 +++++++++---------- src/views/Products/index.js | 6 +- src/views/Products/layouts/Sidebar.js | 10 +- 5 files changed, 63 insertions(+), 57 deletions(-) diff --git a/src/components/Checkbox/index.js b/src/components/Checkbox/index.js index 0f1b141..42b9264 100644 --- a/src/components/Checkbox/index.js +++ b/src/components/Checkbox/index.js @@ -17,7 +17,7 @@ export default function Checkbox(props) {
- +
diff --git a/src/views/Product/Desktop/ProductOverAll/index.js b/src/views/Product/Desktop/ProductOverAll/index.js index 7c7ed3d..d17451c 100644 --- a/src/views/Product/Desktop/ProductOverAll/index.js +++ b/src/views/Product/Desktop/ProductOverAll/index.js @@ -45,55 +45,55 @@ export const ProductOverAll = ({ {"پایه" + " " + grades[book?.gradeId]}
-
- +
+ +
+
+ بیش از 160 نفر امتیاز داده اند +
-
- بیش از 160 نفر امتیاز داده اند -
-
-
-
-

نوع کتاب

-

به من کمک کن انتخاب کنم

-
-
-
-
+
+
+

نوع کتاب

+

به من کمک کن انتخاب کنم

+
+
+
+

aopdjsoqweqweqweqweqweWajsduh

@@ -117,7 +117,7 @@ export const ProductOverAll = ({

نسخه محصول را انتخاب کنید

- +
)} diff --git a/src/views/Products/layouts/Sidebar.js b/src/views/Products/layouts/Sidebar.js index d85e5e2..2ba096b 100644 --- a/src/views/Products/layouts/Sidebar.js +++ b/src/views/Products/layouts/Sidebar.js @@ -3,12 +3,12 @@ import { connect } from "react-redux"; import Checkbox from "../../../components/Checkbox"; import VerticalExpandableProductFilter from "../../../components/VerticalExpandableProductFilter"; -export const Sidebar = ({}) => { +export const Sidebar = ({onChange}) => { const filteronGrade = [ { id:0, - name: "پایه اول", + name: "اول", expaneded: false, subList: [{ id:1, @@ -17,7 +17,7 @@ export const Sidebar = ({}) => { }, { id:1, - name: "پایه دوم", + name: "دوم", expaneded: false, subList: [{ id:1, @@ -26,7 +26,7 @@ export const Sidebar = ({}) => { }, { id:2, - name: "پایه سوم", + name: "سوم", expaneded: false, subList: [], }, @@ -59,7 +59,7 @@ export const Sidebar = ({}) => { }, ] return
- +
;