feat: stacked avatars for contributors

This commit is contained in:
Jean-Philippe Sirois
2019-07-30 13:56:50 -04:00
parent 7e0750c575
commit 49f3cdc43a
4 changed files with 47 additions and 16 deletions
+2 -5
View File
@@ -1,5 +1,6 @@
import React from "react"
import { StackedAvatars } from "../StackedAvatars"
import ChevronUp from "../../icons/chevron-up.svg"
import * as SC from "./styles"
@@ -29,11 +30,7 @@ export function ResourceHeader({
<SC.Title>{title}</SC.Title>
<SC.Top>
<SC.AuthorAvatars>
{authors.map(author => (
<SC.AuthorAvatar src={author.avatar} />
))}
</SC.AuthorAvatars>
<StackedAvatars authors={authors} />
<SC.Meta>
{authors.length} contributor{authors.lenght > 1 && "s"}
</SC.Meta>