|
|
@ -6,15 +6,16 @@ import profilePic3 from "./images/profilePic3.svg"; |
|
|
|
import profilePic4 from "./images/profilePic4.svg"; |
|
|
|
import profilePic4 from "./images/profilePic4.svg"; |
|
|
|
import profilePic5 from "./images/profilePic5.svg"; |
|
|
|
import profilePic5 from "./images/profilePic5.svg"; |
|
|
|
|
|
|
|
|
|
|
|
const ProfilePicNextToEachOther = ({ users,num }) => { |
|
|
|
const ProfilePicNextToEachOther = ({ users,num,marginLeft }) => { |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<div className="flex flex-row"> |
|
|
|
<div className="flex"> |
|
|
|
{users.slice(0, num).map((user, i) => ( |
|
|
|
{users.slice(0, num).map((user, i) => ( |
|
|
|
<img |
|
|
|
<img |
|
|
|
key={i} |
|
|
|
key={i} |
|
|
|
src={user.picture} |
|
|
|
src={user.picture} |
|
|
|
className="w-10" |
|
|
|
className="w-10 h-10 border-2 border-white rounded-full dark:border-gray-800" |
|
|
|
style={{ marginLeft: "-5px" }} |
|
|
|
alt="profile-pic" |
|
|
|
|
|
|
|
style={{ marginLeft: `${marginLeft}` }} |
|
|
|
/> |
|
|
|
/> |
|
|
|
))} |
|
|
|
))} |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -25,6 +26,7 @@ export default ProfilePicNextToEachOther; |
|
|
|
|
|
|
|
|
|
|
|
ProfilePicNextToEachOther.defaultProps = { |
|
|
|
ProfilePicNextToEachOther.defaultProps = { |
|
|
|
num: 8, |
|
|
|
num: 8, |
|
|
|
|
|
|
|
marginLeft: "-10px", |
|
|
|
users: [ |
|
|
|
users: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
picture: profilePic1, |
|
|
|
picture: profilePic1, |
|
|
|