{product.title}
-{product.subTitle}
- {product.price ? ( -
- {product.oldPrice ? (
-
- ) : (
-
-
- ) : null}
-
- {product.oldPrice} تومان
-
-
-
- {product.price} تومان
-
-
- ناموجود
-
- )}
+
+
+
) : null}
{window.innerWidth > 1000 ? (
+
+ کتاب دیجیتال
+ { !product.status.digital ? : null}
-
+
+ واقعیت افزوده
+ { !product.status.ar ? : null}
+
+
+
{this.props.products.map((item, i) => (
-
+
))}
@@ -118,6 +118,10 @@ Products.defaultProps = {
price: "78.000",
oldPrice: "",
date: new Date(),
+ status: {
+ digital: true,
+ ar: true,
+ },
},
{
id: 1,
@@ -127,6 +131,10 @@ Products.defaultProps = {
price: "39.000",
oldPrice: "59.000",
date: new Date(),
+ status: {
+ digital: true,
+ ar: true,
+ },
},
{
id: 2,
@@ -135,6 +143,10 @@ Products.defaultProps = {
subTitle: "پایه ششم ابتدایی",
price: "21.000",
oldPrice: "",
+ status: {
+ digital: true,
+ ar: true,
+ },
},
{
id: 3,
@@ -143,6 +155,10 @@ Products.defaultProps = {
subTitle: "پایه دهم ابتدایی",
price: "",
oldPrice: "",
+ status: {
+ digital: true,
+ ar: true,
+ },
},
{
id: 4,
@@ -151,6 +167,10 @@ Products.defaultProps = {
subTitle: "پایه هفتم ابتدایی",
price: "59.000",
oldPrice: "",
+ status: {
+ digital: true,
+ ar: true,
+ },
},
{
id: 5,
@@ -160,6 +180,10 @@ Products.defaultProps = {
price: "78.000",
oldPrice: "",
date: new Date(),
+ status: {
+ digital: true,
+ ar: true,
+ },
},
{
id: 6,
@@ -169,6 +193,10 @@ Products.defaultProps = {
price: "39.000",
oldPrice: "59.000",
date: new Date(),
+ status: {
+ digital: true,
+ ar: true,
+ },
},
{
id: 7,
@@ -178,6 +206,10 @@ Products.defaultProps = {
price: "21.000",
oldPrice: "",
date: new Date(),
+ status: {
+ digital: true,
+ ar: true,
+ },
},
{
id: 8,
@@ -187,6 +219,10 @@ Products.defaultProps = {
price: "",
oldPrice: "",
date: new Date(),
+ status: {
+ digital: true,
+ ar: true,
+ },
},
{
id: 9,
@@ -196,6 +232,10 @@ Products.defaultProps = {
price: "59.000",
oldPrice: "",
date: new Date(),
+ status: {
+ digital: true,
+ ar: true,
+ },
},
],
};