update src/components/CardTrelloDesign/index.js

master
Your Name 3 years ago
parent 71ac4fcd1f
commit 9f689a59c3
  1. 19
      src/components/CardTrelloDesign/index.js

@ -9,7 +9,7 @@ import messageText from "./images/message-text.svg";
import ProfilePicNextToEachOther from "../ProfilePicNextToEachOther"; import ProfilePicNextToEachOther from "../ProfilePicNextToEachOther";
import AnimatedProgressBar from "../AnimatedProgressBar"; import AnimatedProgressBar from "../AnimatedProgressBar";
const CardTrelloDesign = ({ circle,commnets,buttons,tags,showBtn,showTag }) => { const CardTrelloDesign = ({ circle,commnets,buttons,tags,showBtn,showTag,emptyCards,showEmptyCards }) => {
return ( return (
<div className="w-3/12 mx-auto bg-white mt-10 rounded-md shadow p-3"> <div className="w-3/12 mx-auto bg-white mt-10 rounded-md shadow p-3">
{/* top */} {/* top */}
@ -39,6 +39,9 @@ const CardTrelloDesign = ({ circle,commnets,buttons,tags,showBtn,showTag }) => {
text={btn.name} text={btn.name}
/> />
)} )}
{showEmptyCards && emptyCards.map((card,idx) => (
<div className={`w-5 h-1.5 rounded ${card.backgroundColor}`}></div>
))}
</div> </div>
</div> </div>
{/* middle */} {/* middle */}
@ -128,4 +131,18 @@ CardTrelloDesign.defaultProps = {
icon: nike icon: nike
}, },
], ],
showEmptyCards:false,
emptyCards: [
{
backgroundColor: "bg-[#FF0A3C]"
},
{
backgroundColor: "bg-[#0AABFF]"
},
{
backgroundColor: "bg-[#C7FF0A]"
},
]
}; };

Loading…
Cancel
Save