@ -1,7 +1,7 @@
import React , { useState } from "react" ;
import React , { useState } from "react" ;
import { BsExclamationSquareFill } from "react-icons/bs" ;
import { BsExclamationSquareFill } from "react-icons/bs" ;
import { connect } from "react-redux" ;
const ProductDesign = ( {
const ProductDesign = ( {
@ -36,7 +36,8 @@ const ProductDesign = ({
hoverMode ,
hoverMode ,
teacher ,
teacher ,
btnOnClick ,
btnOnClick ,
catId
catId ,
isMobile
} ) => {
} ) => {
const [ isHovering , setIsHovering ] = useState ( false ) ;
const [ isHovering , setIsHovering ] = useState ( false ) ;
@ -75,8 +76,8 @@ const ProductDesign = ({
if ( catId == 1 ) {
if ( catId == 1 ) {
return (
return (
< div className = { ` flex flex-col pt-4 text-right rounded-xl justify-start w-full m-4 border border-red82OP ` }
< div className = { ` flex flex-col pt-4 text-right rounded-xl justify-start w-full m-4 border border-red82OP ${ isMobile && 'w-11/12' } ` }
style = { { width : '375px', direction : 'rtl' } }
style = { { width : ! isMobile && '375px' , direction : 'rtl' } }
>
>
@ -119,7 +120,7 @@ const ProductDesign = ({
}
}
if ( catId == 2 ) {
if ( catId == 2 ) {
return (
return (
< div className = "flex p-6 pl-0 pb-0 border border-red82OP my-4 rounded-lg" style = { { width : '90%' , marginRight : '5%' } } >
< div className = "flex p-6 pl-0 pb-0 border border-red82OP my-4 rounded-lg" style = { { width : '90%' } } >
< div className = "h-full w-60 pl-4" >
< div className = "h-full w-60 pl-4" >
{ /* image */ }
{ /* image */ }
< img src = "https://fa.tripyar.com/uploads/picture/2977/2.jpg" className = "h-full rounded-md" / >
< img src = "https://fa.tripyar.com/uploads/picture/2977/2.jpg" className = "h-full rounded-md" / >
@ -274,8 +275,12 @@ const ProductDesign = ({
return < div > < / d i v >
return < div > < / d i v >
}
}
} ;
} ;
const mapStateToProps = ( state ) => ( {
isMobile : state . publicApi . isMobile ,
} ) ;
const mapDispatchToProps = ( { } ) ;
export default ProductDesign ;
export default connect ( mapStateToProps , mapDispatchToProps ) ( ProductDesign ) ;