feat: user avatar images

- added user avatars for each user
- it will fetch user images from github or google and if there is no image then it will show initials
This commit is contained in:
Akhileshrangani4
2024-11-10 23:40:10 -05:00
parent 90bfdec58a
commit e9f03d52fd
11 changed files with 64 additions and 18 deletions

View File

@ -51,7 +51,7 @@ const getSharedUsers = async (usersToSandboxes: UsersToSandboxes[]) => {
}
)
const userData: User = await userRes.json()
return { id: userData.id, name: userData.name }
return { id: userData.id, name: userData.name, avatarUrl: userData.avatarUrl }
})
)

View File

@ -35,6 +35,7 @@ export default async function DashboardPage() {
type: "react" | "node"
author: string
sharedOn: Date
authorAvatarUrl: string
}[]
return (