From 50fbe402d5357c999516198946c1c645da73aadc Mon Sep 17 00:00:00 2001 From: mahdi Date: Tue, 3 May 2022 19:41:45 +0430 Subject: [PATCH] update App.js, src/components/CardTrelloDesign/index.js, src/components/NewTagDesign/index.js and src/components/ProfilePicNextToEachOther/index.js --- src/App.js | 4 +- src/components/CardTrelloDesign/index.js | 19 ++----- src/components/NewTagDesign/index.js | 49 +++---------------- .../ProfilePicNextToEachOther/index.js | 8 +-- 4 files changed, 19 insertions(+), 61 deletions(-) diff --git a/src/App.js b/src/App.js index 58ad719..f461d99 100644 --- a/src/App.js +++ b/src/App.js @@ -128,7 +128,7 @@ function App() { {/* ---------------------------- not usable ---------------------------- */} {/* */} - {/* */} + {/* */} @@ -162,7 +162,7 @@ function App() { {/* */} {/* */} - + {/* */} {/* */} {/* */} diff --git a/src/components/CardTrelloDesign/index.js b/src/components/CardTrelloDesign/index.js index b9af401..203bf2c 100644 --- a/src/components/CardTrelloDesign/index.js +++ b/src/components/CardTrelloDesign/index.js @@ -93,21 +93,14 @@ const CardTrelloDesign = ({ )} + {showTag && tags.map((tag) => ( ))} @@ -148,14 +141,12 @@ CardTrelloDesign.defaultProps = { tags: [ { title: "29 فروردین", - color: "text-[#007987]", - backgroundColor: "bg-[#06BACE33]", + className: "text-[#007987] bg-[#06BACE33]", icon: clock, }, { title: "12 از 13", - color: "text-[#FFAA00]", - backgroundColor: "bg-[#FFAA0033]", + className: "text-[#FFAA00] bg-[#FFAA0033]", icon: nike, }, ], diff --git a/src/components/NewTagDesign/index.js b/src/components/NewTagDesign/index.js index f9fe8a1..a9ae6f7 100644 --- a/src/components/NewTagDesign/index.js +++ b/src/components/NewTagDesign/index.js @@ -2,35 +2,11 @@ import React from "react"; import blackCancleIcon from "./black-cancle-icon.svg"; -const NewTagDesign = ({ - titleColor, - title, - tagBgColor, - tagBorderColor, - icon, - fontSize, - fontWeight, - border, - borderRadius, - iconWidth, - marginRight, - marginLeft, - align, - paddingY, - paddingX, -}) => { +const NewTagDesign = ({ title, icon, tagClassName, iconClassName }) => { return ( - ); }; @@ -39,19 +15,10 @@ export default NewTagDesign; NewTagDesign.defaultProps = { title: "کتاب", - align: "flex-row", - titleColor: "text-blue-600", - tagBgColor: "bg-blue-300", - border: "border-2", - borderRadius: "rounded-full", - tagBorderColor: "border-blue-600", - fontSize: "text-xs", - fontWeight: "font-bold", - iconWidth: "w-2.5", - marginRight: "mr-5", - paddingY: "p-2", - paddingX: "p-1", - marginLeft: "ml-4", - // for icons + + tagClassName: + "flex flex-row items-center text-blue-600 text-xs font-sansbold p-1 p-2 bg-blue-300 border-2 border-blue-600 rounded-full", + iconClassName: "w-2.5 mr-5 ml-4", + icon: blackCancleIcon, }; diff --git a/src/components/ProfilePicNextToEachOther/index.js b/src/components/ProfilePicNextToEachOther/index.js index ab4c03d..0fd4956 100644 --- a/src/components/ProfilePicNextToEachOther/index.js +++ b/src/components/ProfilePicNextToEachOther/index.js @@ -14,9 +14,8 @@ const ProfilePicNextToEachOther = ({ users, num, marginLeft, width }) => { profile-pic {Number(i) === num - 1 && (
@@ -33,8 +32,9 @@ export default ProfilePicNextToEachOther; ProfilePicNextToEachOther.defaultProps = { num: 8, - marginLeft: "-10px", - width: "w-10", + + circleClass: "w-10", + users: [ { picture: profilePic1,