From 71ac4fcd1ff9575e602ad2285162eba16aba83d6 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 12 Apr 2022 12:32:28 +0430 Subject: [PATCH] update App.js, src/components/CardTrelloDesign/index.js and src/components/ProfilePicNextToEachOther/index.js --- src/components/CardTrelloDesign/index.js | 2 +- .../ProfilePicNextToEachOther/index.js | 23 ++++++++++++------- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/src/components/CardTrelloDesign/index.js b/src/components/CardTrelloDesign/index.js index be652e4..e7c5153 100644 --- a/src/components/CardTrelloDesign/index.js +++ b/src/components/CardTrelloDesign/index.js @@ -53,7 +53,7 @@ const CardTrelloDesign = ({ circle,commnets,buttons,tags,showBtn,showTag }) => {
{/* right */}
- +
{/* left */}
diff --git a/src/components/ProfilePicNextToEachOther/index.js b/src/components/ProfilePicNextToEachOther/index.js index 298dc8d..f54eca2 100644 --- a/src/components/ProfilePicNextToEachOther/index.js +++ b/src/components/ProfilePicNextToEachOther/index.js @@ -10,14 +10,21 @@ const ProfilePicNextToEachOther = ({ users,num,marginLeft,width }) => { return (
{users.slice(0, num).map((user, i) => ( - profile-pic - ))} +
+ profile-pic + {Number(i) === (num - 1) && ( +
+ + {users.length - (num)} +
+ )} +
+ ))}
); };