|
|
@ -24,7 +24,7 @@ import fontSize from "../../../../constants/fontSize"; |
|
|
|
const { height, width } = Dimensions.get("window"); |
|
|
|
const { height, width } = Dimensions.get("window"); |
|
|
|
const ios = Platform.OS === "ios"; |
|
|
|
const ios = Platform.OS === "ios"; |
|
|
|
|
|
|
|
|
|
|
|
const ProfileBookmark = ({ myCourses = [], mobile, theme }) => { |
|
|
|
const ProfileBookmark = ({ userProducts, mobile, theme }) => { |
|
|
|
const navigation = useNavigation(); |
|
|
|
const navigation = useNavigation(); |
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
return ( |
|
|
@ -46,7 +46,7 @@ const ProfileBookmark = ({ myCourses = [], mobile, theme }) => { |
|
|
|
back: true, |
|
|
|
back: true, |
|
|
|
}} |
|
|
|
}} |
|
|
|
/> |
|
|
|
/> |
|
|
|
{myCourses?.length ? ( |
|
|
|
{userProducts?.filter((product) => product?.condition >= 2 && product?.productType === 4)?.length ? ( |
|
|
|
<ScrollView |
|
|
|
<ScrollView |
|
|
|
contentContainerStyle={styles.contentContainerStyle} |
|
|
|
contentContainerStyle={styles.contentContainerStyle} |
|
|
|
style={styles.container} |
|
|
|
style={styles.container} |
|
|
@ -73,6 +73,7 @@ const ProfileBookmark = ({ myCourses = [], mobile, theme }) => { |
|
|
|
const mapStateToProps = (state) => ({ |
|
|
|
const mapStateToProps = (state) => ({ |
|
|
|
mobile: state.publicApi.mobile, |
|
|
|
mobile: state.publicApi.mobile, |
|
|
|
theme: state.publicApi.theme, |
|
|
|
theme: state.publicApi.theme, |
|
|
|
|
|
|
|
userProducts: state.userProduct.list |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
export default connect(mapStateToProps)(ProfileBookmark); |
|
|
|
export default connect(mapStateToProps)(ProfileBookmark); |
|
|
|