diff --git a/src/views/Product/Desktop/ProductOverAll/index.js b/src/views/Product/Desktop/ProductOverAll/index.js index 041e5cc..2665049 100644 --- a/src/views/Product/Desktop/ProductOverAll/index.js +++ b/src/views/Product/Desktop/ProductOverAll/index.js @@ -118,7 +118,7 @@ export const ProductOverAll = ({ sendingTime={20} numberOfSuggest={160} profit={12000} - // showProduct + showProduct productCat={grades[book?.gradeId]} productImg={`https://dnvn.ir/api/v1/file/${book?.fileIds}`} productName={type === "digital" diff --git a/src/views/Products/index.js b/src/views/Products/index.js index 950f90d..0630fe3 100644 --- a/src/views/Products/index.js +++ b/src/views/Products/index.js @@ -47,6 +47,8 @@ export const Products = ({ gradeFilter(filter.grade); }, [filter]); + + const Product = ({ productsType, product, index }) => { return ( <> @@ -148,6 +150,7 @@ export const Products = ({ /> )) : books?.map((product, index) => ( + -
+
)} diff --git a/src/views/Products/layouts/Main.js b/src/views/Products/layouts/Main.js index b794467..2585daf 100644 --- a/src/views/Products/layouts/Main.js +++ b/src/views/Products/layouts/Main.js @@ -15,17 +15,9 @@ export const Main = ({ isMobile, selectedGrade, gradeFilterBooks, setHeaderOptions, - headerOptions, }) => { - const [filter, setFilter] = useState({ - search: "", - grade: "", - productsType: "کتاب", - }); - const [desktopContentTransform, setDesktopContentTransform] = useState(false); + headerOptions, + filter }) => { - const onChange = (name, value) => { - setFilter({ ...filter, [name]: value }); - }; const filteringNavItems = [ { @@ -60,7 +52,7 @@ export const Main = ({ isMobile, } - +
{selectedGrade ? gradeFilterBooks?.map((product, index) => ( @@ -70,6 +62,15 @@ export const Main = ({ isMobile, product={product} index={Number(index)} grades={grades} + roductName={`کتاب ${product?.name}`} + productCat={`پایه ${grades[product?.gradeId]}`} + productPrice={100000} + productImg={"https://dnvn.ir/api/v1/file/" + product?.fileIds} + numberOfRegards={160} + productTitleColor='text-blue5F' + productCatTextColor='text-blueC0' + productHolderBorder='' + productHolderHoverBorder='shadow-md' /> )) : books?.map((product, index) => ( diff --git a/src/views/Products/layouts/Sidebar.js b/src/views/Products/layouts/Sidebar.js index 2ba096b..65de28d 100644 --- a/src/views/Products/layouts/Sidebar.js +++ b/src/views/Products/layouts/Sidebar.js @@ -59,10 +59,10 @@ export const Sidebar = ({onChange}) => { }, ] return
- - - -
; + + + +
; }; const mapStateToProps = (state) => ({});