From e0d62187d4c3b3f2e24c459a99cae64518e88df0 Mon Sep 17 00:00:00 2001 From: mahdi Date: Mon, 25 Apr 2022 12:18:57 +0430 Subject: [PATCH] delete 6 files and update 1 file --- src/components/CardDesign3/index.js | 115 +++--------------- .../images/profilePic1.svg | 0 .../images/profilePic2.svg | 0 .../images/profilePic3.svg | 0 .../images/profilePic4.svg | 0 .../images/profilePic5.svg | 0 src/components/CustomToast2/index.js | 108 ++++++++++++++++ .../{CardDesign3 => CustomToast2}/pen.svg | 0 8 files changed, 122 insertions(+), 101 deletions(-) rename src/components/{CardDesign3 => CustomToast2}/images/profilePic1.svg (100%) rename src/components/{CardDesign3 => CustomToast2}/images/profilePic2.svg (100%) rename src/components/{CardDesign3 => CustomToast2}/images/profilePic3.svg (100%) rename src/components/{CardDesign3 => CustomToast2}/images/profilePic4.svg (100%) rename src/components/{CardDesign3 => CustomToast2}/images/profilePic5.svg (100%) create mode 100644 src/components/CustomToast2/index.js rename src/components/{CardDesign3 => CustomToast2}/pen.svg (100%) diff --git a/src/components/CardDesign3/index.js b/src/components/CardDesign3/index.js index ed287c0..8c20322 100644 --- a/src/components/CardDesign3/index.js +++ b/src/components/CardDesign3/index.js @@ -1,108 +1,21 @@ import React from "react"; +import CustomToast2 from "../CustomToast2"; +import TitleSubtitle from "../TitleSubtitle"; -import profilePic1 from "./images/profilePic1.svg"; -import profilePic2 from "./images/profilePic2.svg"; -import profilePic3 from "./images/profilePic3.svg"; -import profilePic4 from "./images/profilePic4.svg"; -import profilePic5 from "./images/profilePic5.svg"; -import pen from "./pen.svg"; - -const CardDesign3 = ({ items, num }) => { +const CardDesign3 = () => { return ( - <> - {items.slice(0, num).map((item, index) => ( -
- {/* right */} -
- {item.profilePic} -
-

{item.name}

-

- تاریخ ورود: - {item.enteryData} -

-

- کد ملی - {item.idCard} -

-
-
- {/* left */} -
- - {item.number} - - pen -
-
- ))} - +
+ + +
); }; export default CardDesign3; - -CardDesign3.defaultProps = { - num: 5, - - items: [ - { - profilePic: profilePic1, - name: "کامبیز هوشنمند", - enteryData: "1401/02/01", - idCard: 2980817631, - number: "B06", - }, - { - profilePic: profilePic2, - name: "پارسا ایرانی", - enteryData: "1400/07/19", - idCard: 7000817631, - number: "B04", - }, - { - profilePic: profilePic3, - name: "کامران مرادی", - enteryData: "1400/07/19", - idCard: 2423817631, - number: "B02", - }, - { - profilePic: profilePic4, - name: "محمد علوی", - enteryData: "1400/07/19", - idCard: 3340817631, - number: "B01", - }, - { - profilePic: profilePic5, - name: "محمد محمدی", - enteryData: "1400/07/19", - idCard: 3110817631, - number: "B07", - }, - ], -}; - -// #BCBCBC - -// #B9D1F3 - -// #2483E1 - -// #C9E2B3 - -// #0F0543 - -// #2A527A - -// #468722 - -// #DAF6E5 diff --git a/src/components/CardDesign3/images/profilePic1.svg b/src/components/CustomToast2/images/profilePic1.svg similarity index 100% rename from src/components/CardDesign3/images/profilePic1.svg rename to src/components/CustomToast2/images/profilePic1.svg diff --git a/src/components/CardDesign3/images/profilePic2.svg b/src/components/CustomToast2/images/profilePic2.svg similarity index 100% rename from src/components/CardDesign3/images/profilePic2.svg rename to src/components/CustomToast2/images/profilePic2.svg diff --git a/src/components/CardDesign3/images/profilePic3.svg b/src/components/CustomToast2/images/profilePic3.svg similarity index 100% rename from src/components/CardDesign3/images/profilePic3.svg rename to src/components/CustomToast2/images/profilePic3.svg diff --git a/src/components/CardDesign3/images/profilePic4.svg b/src/components/CustomToast2/images/profilePic4.svg similarity index 100% rename from src/components/CardDesign3/images/profilePic4.svg rename to src/components/CustomToast2/images/profilePic4.svg diff --git a/src/components/CardDesign3/images/profilePic5.svg b/src/components/CustomToast2/images/profilePic5.svg similarity index 100% rename from src/components/CardDesign3/images/profilePic5.svg rename to src/components/CustomToast2/images/profilePic5.svg diff --git a/src/components/CustomToast2/index.js b/src/components/CustomToast2/index.js new file mode 100644 index 0000000..128de44 --- /dev/null +++ b/src/components/CustomToast2/index.js @@ -0,0 +1,108 @@ +import React from "react"; + +import profilePic1 from "./images/profilePic1.svg"; +import profilePic2 from "./images/profilePic2.svg"; +import profilePic3 from "./images/profilePic3.svg"; +import profilePic4 from "./images/profilePic4.svg"; +import profilePic5 from "./images/profilePic5.svg"; +import pen from "./pen.svg"; + +const CustomToast2 = ({ items, num }) => { + return ( + <> + {items.slice(0, num).map((item, index) => ( +
+ {/* right */} +
+ {item.profilePic} +
+

{item.name}

+

+ تاریخ ورود: + {item.enteryData} +

+

+ کد ملی + {item.idCard} +

+
+
+ {/* left */} +
+ + {item.number} + + pen +
+
+ ))} + + ); +}; + +export default CustomToast2; + +CustomToast2.defaultProps = { + num: 5, + + items: [ + { + profilePic: profilePic1, + name: "کامبیز هوشنمند", + enteryData: "1401/02/01", + idCard: 2980817631, + number: "B06", + }, + { + profilePic: profilePic2, + name: "پارسا ایرانی", + enteryData: "1400/07/19", + idCard: 7000817631, + number: "B04", + }, + { + profilePic: profilePic3, + name: "کامران مرادی", + enteryData: "1400/07/19", + idCard: 2423817631, + number: "B02", + }, + { + profilePic: profilePic4, + name: "محمد علوی", + enteryData: "1400/07/19", + idCard: 3340817631, + number: "B01", + }, + { + profilePic: profilePic5, + name: "محمد محمدی", + enteryData: "1400/07/19", + idCard: 3110817631, + number: "B07", + }, + ], +}; + +// #BCBCBC + +// #B9D1F3 + +// #2483E1 + +// #C9E2B3 + +// #0F0543 + +// #2A527A + +// #468722 + +// #DAF6E5 diff --git a/src/components/CardDesign3/pen.svg b/src/components/CustomToast2/pen.svg similarity index 100% rename from src/components/CardDesign3/pen.svg rename to src/components/CustomToast2/pen.svg