({ repo, href }: Props)
| 6 | href?: string |
| 7 | } |
| 8 | export const RepoCard = ({ repo, href }: Props) => { |
| 9 | return ( |
| 10 | <a |
| 11 | className="Box d-flex height-full color-shadow-medium hover-shadow-large no-underline color-fg-default p-4" |
| 12 | href={href || `https://github.com/${repo.repo}`} |
| 13 | > |
| 14 | <div className="flex-shrink-0 mr-3"> |
| 15 | <img |
| 16 | src={`https://github.com/${repo.repo.split('/')[0]}.png`} |
| 17 | alt={repo.repo} |
| 18 | className="avatar avatar-8" |
| 19 | /> |
| 20 | </div> |
| 21 | <div className="flex-auto"> |
| 22 | <h4>{repo.repo}</h4> |
| 23 | <p className="mt-1 color-fg-muted">{repo.description}</p> |
| 24 | </div> |
| 25 | </a> |
| 26 | ) |
| 27 | } |
nothing calls this directly
no outgoing calls
no test coverage detected