-
Notifications
You must be signed in to change notification settings - Fork 352
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(AvatarCircles): updated avatarcircles component to support profi…
…le urls
- Loading branch information
1 parent
da09762
commit 582d5c7
Showing
2 changed files
with
56 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,29 @@ | ||
import AvatarCircles from "@/components/magicui/avatar-circles"; | ||
|
||
const avatarUrls = [ | ||
"https://avatars.githubusercontent.com/u/16860528", | ||
"https://avatars.githubusercontent.com/u/20110627", | ||
"https://avatars.githubusercontent.com/u/106103625", | ||
"https://avatars.githubusercontent.com/u/59228569", | ||
// Make Your DB call here is extract users image and profile url | ||
const avatars = [ | ||
{ | ||
imageUrl: "https://avatars.githubusercontent.com/u/16860528", | ||
profileUrl: "https://github.com/dillionverma", | ||
}, | ||
{ | ||
imageUrl: "https://avatars.githubusercontent.com/u/20110627", | ||
profileUrl: "https://github.com/tomonarifeehan", | ||
}, | ||
{ | ||
imageUrl: "https://avatars.githubusercontent.com/u/106103625", | ||
profileUrl: "https://github.com/BankkRoll", | ||
}, | ||
{ | ||
imageUrl: "https://avatars.githubusercontent.com/u/59228569", | ||
profileUrl: "https://github.com/safethecode", | ||
}, | ||
{ | ||
imageUrl: "https://avatars.githubusercontent.com/u/59442788", | ||
profileUrl: "https://github.com/sanjay-mali", | ||
}, | ||
]; | ||
|
||
export default async function AvatarCirclesDemo() { | ||
return <AvatarCircles numPeople={99} avatarUrls={avatarUrls} />; | ||
return <AvatarCircles numPeople={99} avatarUrls={avatars} />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters