Implement the new Avatar interface to the teams page (#512)

This commit is contained in:
Alex van Andel authored and GitHub committed 2021-08-23 10:40:57 +01:00
1 parent aec22d9362
commit ce64080160
2 files changed
+13 -13

No files matched your search

+7 -4
View File
@@ -37,7 +37,11 @@ const Team = ({ team }) => {
)}
/>
<Avatar user={member.user} className="w-12 h-12 rounded-full" />
<Avatar
displayName={member.user.name}
imageSrc={member.user.avatar}
className="w-12 h-12 rounded-full"
/>
<section className="space-y-2">
<Text variant="title">{member.user.name}</Text>
@@ -68,9 +72,8 @@ const Team = ({ team }) => {
<article className="flex flex-col space-y-8 lg:space-y-12">
<div className="mb-8 text-center">
<Avatar
user={{
email: team.name,
}}
displayName={team.name}
imageSrc={team.logo}
className="mx-auto w-20 h-20 rounded-full mb-4"
/>
<Text variant="headline">{team.name}</Text>