From 3d7e75d2a54822656fccb4e0bd160506c198278f Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 12 Apr 2022 10:58:02 +0430 Subject: [PATCH] update src/components/CardTrelloDesign/index.js, src/components/CircleInCircle/index.js and src/components/ProfilePicNextToEachOther/index.js --- src/components/CardTrelloDesign/index.js | 53 +++++++++---------- src/components/CircleInCircle/index.js | 2 +- .../ProfilePicNextToEachOther/index.js | 5 +- 3 files changed, 28 insertions(+), 32 deletions(-) diff --git a/src/components/CardTrelloDesign/index.js b/src/components/CardTrelloDesign/index.js index 4ced73e..1c20853 100644 --- a/src/components/CardTrelloDesign/index.js +++ b/src/components/CardTrelloDesign/index.js @@ -27,30 +27,9 @@ const CardTrelloDesign = ({ circle,commnets,tags, }) => { )} {/* left */}
- - - { fontSize={"text-xs"} borderRadius={"rounded-sm"} icon={false} - text={"بک اند"} - /> + text={tag.name} + />)} + +
{/* middle */} @@ -74,7 +55,7 @@ const CardTrelloDesign = ({ circle,commnets,tags, }) => {
{/* right */}
- +
{/* left */}
@@ -125,6 +106,20 @@ export default CardTrelloDesign; CardTrelloDesign.defaultProps = { circle: true, - commnets: false, - tags: false + commnets: true, + tags: [ + { + name: "بک اند", + color: "#C7FF0A" + }, + { + name: "بک اند", + color: "#0AABFF" + }, + { + name: "بک اند", + color: "#C7FF0A" + } + ] + }; diff --git a/src/components/CircleInCircle/index.js b/src/components/CircleInCircle/index.js index 646f242..b74f16a 100644 --- a/src/components/CircleInCircle/index.js +++ b/src/components/CircleInCircle/index.js @@ -10,7 +10,7 @@ const CircleInCircle = ({ }) => { return (
{ +const ProfilePicNextToEachOther = ({ users,num,marginLeft,width }) => { return (
{users.slice(0, num).map((user, i) => ( profile-pic @@ -27,6 +27,7 @@ export default ProfilePicNextToEachOther; ProfilePicNextToEachOther.defaultProps = { num: 8, marginLeft: "-10px", + width: "w-10", users: [ { picture: profilePic1,