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

@ -20,6 +20,7 @@ export default function DashboardSharedWithMe({
name: string
type: "react" | "node"
author: string
authorAvatarUrl: string
sharedOn: Date
}[]
}) {
@ -58,7 +59,11 @@ export default function DashboardSharedWithMe({
</TableCell>
<TableCell>
<div className="flex items-center">
<Avatar name={sandbox.author} className="mr-2" />
<Avatar
name={sandbox.author}
avatarUrl={sandbox.authorAvatarUrl}
className="mr-2"
/>
{sandbox.author}
</div>
</TableCell>