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
+17
View File
@@ -0,0 +1,17 @@
import React from "react"
import * as SC from "./styles"
interface StackedAvatarsProps {
authors: any
}
export function StackedAvatars({ authors }: StackedAvatarsProps) {
return (
<SC.StackedAvatarsWrapper count={authors.length}>
{authors.map((author, index) => (
<SC.AuthorAvatar src={author.avatar} index={index} />
))}
</SC.StackedAvatarsWrapper>
)
}