diff --git a/src/components/Product/index.js b/src/components/Product/index.js index bfce651..c4aa26d 100644 --- a/src/components/Product/index.js +++ b/src/components/Product/index.js @@ -1,7 +1,7 @@ import React, { useState } from "react"; import { BsExclamationSquareFill } from "react-icons/bs"; - +import { connect } from "react-redux"; const ProductDesign = ({ @@ -36,7 +36,8 @@ const ProductDesign = ({ hoverMode, teacher, btnOnClick, - catId + catId, + isMobile }) => { const [isHovering, setIsHovering] = useState(false); @@ -75,8 +76,8 @@ const ProductDesign = ({ if (catId == 1) { return ( -
@@ -274,8 +275,12 @@ const ProductDesign = ({
return
}
};
+const mapStateToProps = (state) => ({
+ isMobile: state.publicApi.isMobile,
+});
+const mapDispatchToProps = ({});
-export default ProductDesign;
+export default connect(mapStateToProps, mapDispatchToProps)(ProductDesign);
diff --git a/src/view/services/index.js b/src/view/services/index.js
index ac8303a..4f7c486 100644
--- a/src/view/services/index.js
+++ b/src/view/services/index.js
@@ -429,7 +429,7 @@ if (!isMobile){
// Mobile Version
else{
return(
-