Also show avatar url from contract feed
This commit is contained in:
parent
f9780a2f69
commit
5ac77674ed
|
@ -306,13 +306,19 @@ function FeedDescription(props: { contract: Contract }) {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div>
|
{contract.creatorAvatarUrl ? (
|
||||||
|
<AvatarWithIcon
|
||||||
|
username={contract.creatorUsername}
|
||||||
|
avatarUrl={contract.creatorAvatarUrl}
|
||||||
|
/>
|
||||||
|
) : (
|
||||||
|
// TODO: After 2022-03-01, can just assume that all contracts have an avatarUrl
|
||||||
<div className="relative px-1">
|
<div className="relative px-1">
|
||||||
<div className="h-8 w-8 bg-gray-200 rounded-full flex items-center justify-center">
|
<div className="h-8 w-8 bg-gray-200 rounded-full flex items-center justify-center">
|
||||||
<StarIcon className="h-5 w-5 text-gray-500" aria-hidden="true" />
|
<StarIcon className="h-5 w-5 text-gray-500" aria-hidden="true" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
)}
|
||||||
<div className="min-w-0 flex-1 py-1.5">
|
<div className="min-w-0 flex-1 py-1.5">
|
||||||
<div className="text-sm text-gray-500">
|
<div className="text-sm text-gray-500">
|
||||||
<UserLink
|
<UserLink
|
||||||
|
|
Loading…
Reference in New Issue
Block a user