edit profile presentation

This commit is contained in:
Ruidy Nemausat 2020-05-20 17:59:41 +02:00
parent 847af617ca
commit f54ad80aa2

View file

@ -189,7 +189,7 @@ const Profile: FC<IProps> = ({dev}) => {
</div>
) : (
dev.repos.map((r: Repo, i: number) => (
<div className="repo bg-white my-1 p-1">
<div className="repo bg-white my-1 p-1" key={i}>
<div>
<h4>
<a href={r.url}>{r.name}</a>
@ -199,13 +199,13 @@ const Profile: FC<IProps> = ({dev}) => {
<div>
<ul>
<li className="badge badge-primary">
<FontAwesomeIcon icon={faStar} /> Stars: 42
<FontAwesomeIcon icon={faStar} /> Stars: {r.stars}
</li>
<li className="badge badge-dark">
<FontAwesomeIcon icon={faEye} /> Watchers: 2
<FontAwesomeIcon icon={faEye} /> Watchers: {r.watchers}
</li>
<li className="badge badge-light">
<FontAwesomeIcon icon={faCodeBranch} /> Forks: 4
<FontAwesomeIcon icon={faCodeBranch} /> Forks: {r.forks}
</li>
</ul>
</div>