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