Skip to content
Snippets Groups Projects
Commit 9859d898 authored by Jure's avatar Jure
Browse files

feat: display name and ORCID id of users

parent be643c02
No related branches found
No related tags found
No related merge requests found
...@@ -26,8 +26,8 @@ const User = ({ user }) => { ...@@ -26,8 +26,8 @@ const User = ({ user }) => {
<UserCombo> <UserCombo>
<UserAvatar user={user} /> <UserAvatar user={user} />
<UserInfo> <UserInfo>
<Primary>{user.username}</Primary> <Primary>{user?.defaultIdentity?.name}</Primary>
<Secondary>{user.email || '(via ORCID)'}</Secondary> <Secondary>{`ORCID: ${user?.username}`}</Secondary>
</UserInfo> </UserInfo>
</UserCombo> </UserCombo>
</Cell> </Cell>
......
...@@ -37,6 +37,10 @@ const GET_USERS = gql` ...@@ -37,6 +37,10 @@ const GET_USERS = gql`
admin admin
email email
profilePicture profilePicture
defaultIdentity {
id
name
}
online online
created created
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment