update App.js, src/components/PopupCard/index.js and src/components/ProfilePicNextToEachOther/index.js

master
Your Name 3 years ago
parent 6bc5dc5613
commit c46a8e231a
  1. 2
      src/App.js
  2. 10
      src/components/ProfilePicNextToEachOther/index.js

@ -148,7 +148,7 @@ function App() {
{/* <SemiDonut /> */} {/* <SemiDonut /> */}
{/* <FolderTree /> */} {/* <FolderTree /> */}
{/* <GridListTable /> */} {/* <GridListTable /> */}
{/* <PopupCard /> */} <PopupCard />
{/* <TimeLine /> */} {/* <TimeLine /> */}
{/* <TimeLineComponent /> */} {/* <TimeLineComponent /> */}
{/* <SelectYear /> */} {/* <SelectYear /> */}

@ -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,

Loading…
Cancel
Save