diff --git a/src/components/CardTrelloDesign/index.js b/src/components/CardTrelloDesign/index.js index e7c5153..c207247 100644 --- a/src/components/CardTrelloDesign/index.js +++ b/src/components/CardTrelloDesign/index.js @@ -9,7 +9,7 @@ import messageText from "./images/message-text.svg"; import ProfilePicNextToEachOther from "../ProfilePicNextToEachOther"; import AnimatedProgressBar from "../AnimatedProgressBar"; -const CardTrelloDesign = ({ circle,commnets,buttons,tags,showBtn,showTag }) => { +const CardTrelloDesign = ({ circle,commnets,buttons,tags,showBtn,showTag,emptyCards,showEmptyCards }) => { return (
{/* top */} @@ -39,6 +39,9 @@ const CardTrelloDesign = ({ circle,commnets,buttons,tags,showBtn,showTag }) => { text={btn.name} /> )} + {showEmptyCards && emptyCards.map((card,idx) => ( +
+ ))}
{/* middle */} @@ -111,7 +114,7 @@ CardTrelloDesign.defaultProps = { name: "بک اند", color: "#C7FF0A" } - ], + ], showTag:true, tags: [ @@ -128,4 +131,18 @@ CardTrelloDesign.defaultProps = { icon: nike }, ], + + showEmptyCards:false, + emptyCards: [ + { + backgroundColor: "bg-[#FF0A3C]" + }, + { + backgroundColor: "bg-[#0AABFF]" + }, + { + backgroundColor: "bg-[#C7FF0A]" + }, + ] + };