From b3f847a3711676817d1c4fe4e6410fbe86a3868c Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Thu, 11 Jul 2019 22:32:37 -0700 Subject: [PATCH] fix: User profiles dont open from document collaborator facepile --- app/components/Collaborators.js | 100 +++++++++++++++++--------------- 1 file changed, 52 insertions(+), 48 deletions(-) diff --git a/app/components/Collaborators.js b/app/components/Collaborators.js index b5374087..fa975b12 100644 --- a/app/components/Collaborators.js +++ b/app/components/Collaborators.js @@ -60,56 +60,60 @@ class Collaborators extends React.Component { {overflow > 0 && +{overflow}} {mostRecentViewers.map(({ lastViewedAt, user }) => ( - - {user.name} -
- viewed {distanceInWordsToNow(new Date(lastViewedAt))} ago - - } - placement="bottom" - > - - this.handleOpenProfile(user.id)} - /> - - -
+ + + {user.name} +
+ viewed {distanceInWordsToNow(new Date(lastViewedAt))} ago + + } + placement="bottom" + > + + this.handleOpenProfile(user.id)} + /> + +
+ +
))} {collaborators.map(user => ( - - {user.name} -
- {createdAt === updatedAt ? 'published' : 'updated'}{' '} - {updatedBy.id === user.id && - `${distanceInWordsToNow(new Date(updatedAt))} ago`} - - } - placement="bottom" - > - - this.handleOpenProfile(user.id)} - /> - - -
+ + + {user.name} +
+ {createdAt === updatedAt ? 'published' : 'updated'}{' '} + {updatedBy.id === user.id && + `${distanceInWordsToNow(new Date(updatedAt))} ago`} + + } + placement="bottom" + > + + this.handleOpenProfile(user.id)} + /> + +
+ +
))}
);