update 3 files and delete 10 files

master
mahdi 3 years ago
parent 2cef87bd7a
commit 9224d665cf
  1. 0
      public/images/ProductStatusCardarrow-icon.svg
  2. 0
      public/images/ProductStatusCarddelivery-icon.svg
  3. 0
      public/images/ProductStatusCardicon-shop.svg
  4. 0
      public/images/ProductStatusCardicon1.svg
  5. 0
      public/images/ProductStatusCardinfo-circle.svg
  6. 0
      public/images/ProductStatusCardshield-tick.svg
  7. 0
      public/images/ProductStatusCardtick-circle.svg
  8. 31
      src/components/CardDesgin/ProductStatusCard/index.js
  9. 2
      src/components/CardDesgin/index.js
  10. 2
      src/components/ProductDescriptionTable/ProductTab/index.js
  11. 0
      src/components/ProductDescriptionTable/ProductTab/table/index.js
  12. 2
      src/components/ProductDescriptionTable/index.js

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Before

Width:  |  Height:  |  Size: 829 B

After

Width:  |  Height:  |  Size: 829 B

Before

Width:  |  Height:  |  Size: 864 B

After

Width:  |  Height:  |  Size: 864 B

Before

Width:  |  Height:  |  Size: 652 B

After

Width:  |  Height:  |  Size: 652 B

@ -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,

@ -8,6 +8,7 @@ import CardDesign2 from "./CardDesign2";
import CardDesign3 from "./CardDesign3"; import CardDesign3 from "./CardDesign3";
import CustomToast from "./CustomToast"; import CustomToast from "./CustomToast";
import CustomToast2 from "./CustomToast2"; import CustomToast2 from "./CustomToast2";
import ProductStatusCard from "./ProductStatusCard";
function CardDesgin() { function CardDesgin() {
const list = { const list = {
@ -19,6 +20,7 @@ function CardDesgin() {
6: <CardDesign3 />, 6: <CardDesign3 />,
7: <CustomToast />, 7: <CustomToast />,
8: <CustomToast2 />, 8: <CustomToast2 />,
9: <ProductStatusCard />,
}; };
const [type, setType] = useState(1); const [type, setType] = useState(1);
return ( return (

@ -5,7 +5,7 @@ const ProductTab = ({ tabs }) => {
const [selectedTab, setSelectedTab] = useState(null); const [selectedTab, setSelectedTab] = useState(null);
return ( return (
<section className="m-10"> <section className="w-full">
<div className="rounded bg-white"> <div className="rounded bg-white">
<ul className="flex flex-row"> <ul className="flex flex-row">
{tabs.map((tab, index) => ( {tabs.map((tab, index) => (

@ -1,10 +1,12 @@
import React, { useState } from "react"; import React, { useState } from "react";
import ProductTable1 from "./ProductTable1"; import ProductTable1 from "./ProductTable1";
import ProductTab from "./ProductTab";
function Advertisements() { function Advertisements() {
const list = { const list = {
1: <ProductTable1 />, 1: <ProductTable1 />,
2: <ProductTab />,
}; };
const [type, setType] = useState(1); const [type, setType] = useState(1);
return ( return (

Loading…
Cancel
Save