|
|
@ -1,13 +1,6 @@ |
|
|
|
import React from "react"; |
|
|
|
import React from "react"; |
|
|
|
|
|
|
|
|
|
|
|
import arrow from "./arrow-icon.svg"; |
|
|
|
import Button from "../../ButtonDesign/Button"; |
|
|
|
import delivery from "./delivery-icon.svg"; |
|
|
|
|
|
|
|
import checked from "./icon1.svg"; |
|
|
|
|
|
|
|
import circle from "./info-circle.svg"; |
|
|
|
|
|
|
|
import shield from "./shield-tick.svg"; |
|
|
|
|
|
|
|
import tick from "./tick-circle.svg"; |
|
|
|
|
|
|
|
import shop from "./icon-shop.svg"; |
|
|
|
|
|
|
|
import Button from "../Button"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const ProductStatusCard = ({ items, productPrice, discountPrice }) => { |
|
|
|
const ProductStatusCard = ({ items, productPrice, discountPrice }) => { |
|
|
|
console.log(items.alertIcon); |
|
|
|
console.log(items.alertIcon); |
|
|
@ -38,7 +31,13 @@ const ProductStatusCard = ({ items, productPrice, discountPrice }) => { |
|
|
|
)} |
|
|
|
)} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{item.alertIcon && <img src={circle} alt="" className="w-5" />} |
|
|
|
{item.alertIcon && ( |
|
|
|
|
|
|
|
<img |
|
|
|
|
|
|
|
src="images/ProductStatusCardnfo-circle.svg" |
|
|
|
|
|
|
|
alt="" |
|
|
|
|
|
|
|
className="w-5" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
)} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{Number(index) !== items.length - 1 && ( |
|
|
|
{Number(index) !== items.length - 1 && ( |
|
|
|
<div className="border-b border-gray-300"></div> |
|
|
|
<div className="border-b border-gray-300"></div> |
|
|
@ -65,7 +64,11 @@ const ProductStatusCard = ({ items, productPrice, discountPrice }) => { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div className="bg-gray-200 rounded px-4 py-2 mt-2 flex flex-row items-center"> |
|
|
|
<div className="bg-gray-200 rounded px-4 py-2 mt-2 flex flex-row items-center"> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<img src={arrow} alt="" className="w-20 h-20" /> |
|
|
|
<img |
|
|
|
|
|
|
|
src="images/ProductStatusCardarrow-icon.svg" |
|
|
|
|
|
|
|
alt="" |
|
|
|
|
|
|
|
className="w-20 h-20" |
|
|
|
|
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div className="flex flex-col mr-5"> |
|
|
|
<div className="flex flex-col mr-5"> |
|
|
|
<h2 className="text-sm font-sansbold text-blue-900"> |
|
|
|
<h2 className="text-sm font-sansbold text-blue-900"> |
|
|
@ -86,7 +89,7 @@ export default ProductStatusCard; |
|
|
|
ProductStatusCard.defaultProps = { |
|
|
|
ProductStatusCard.defaultProps = { |
|
|
|
items: [ |
|
|
|
items: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
icon: tick, |
|
|
|
icon: "images/ProductStatusCardtick-circle.svg", |
|
|
|
title: "توصیه به خرید توسط 4420 نفر", |
|
|
|
title: "توصیه به خرید توسط 4420 نفر", |
|
|
|
subtitle: null, |
|
|
|
subtitle: null, |
|
|
|
alertIcon: false, |
|
|
|
alertIcon: false, |
|
|
@ -94,7 +97,7 @@ ProductStatusCard.defaultProps = { |
|
|
|
customerSatisfactionPercent: null, |
|
|
|
customerSatisfactionPercent: null, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
icon: shop, |
|
|
|
icon: "images/ProductStatusCardicon-shop.svg", |
|
|
|
title: " آپادانا ", |
|
|
|
title: " آپادانا ", |
|
|
|
subtitle: " فروشنده", |
|
|
|
subtitle: " فروشنده", |
|
|
|
alertIcon: true, |
|
|
|
alertIcon: true, |
|
|
@ -102,7 +105,7 @@ ProductStatusCard.defaultProps = { |
|
|
|
customerSatisfactionPercent: " 91.5 ", |
|
|
|
customerSatisfactionPercent: " 91.5 ", |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
icon: delivery, |
|
|
|
icon: "images/ProductStatusCarddelivery-icon.svg", |
|
|
|
title: " 20 روز کاری پس از سفارش ", |
|
|
|
title: " 20 روز کاری پس از سفارش ", |
|
|
|
subtitle: "زمان ارسال", |
|
|
|
subtitle: "زمان ارسال", |
|
|
|
alertIcon: false, |
|
|
|
alertIcon: false, |
|
|
@ -110,7 +113,7 @@ ProductStatusCard.defaultProps = { |
|
|
|
customerSatisfactionPercent: null, |
|
|
|
customerSatisfactionPercent: null, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
icon: shield, |
|
|
|
icon: "images/ProductStatusCardshield-tick.svg", |
|
|
|
title: "اصالت و سلامت فیزیکی", |
|
|
|
title: "اصالت و سلامت فیزیکی", |
|
|
|
subtitle: "گارانتی ", |
|
|
|
subtitle: "گارانتی ", |
|
|
|
alertIcon: true, |
|
|
|
alertIcon: true, |