(props: Props)
| 8 | } |
| 9 | |
| 10 | export default function RepoOwnership(props: Props) { |
| 11 | if (!props.showRepoOwnership) return null |
| 12 | |
| 13 | const repoColors = props.repoColors |
| 14 | const width = repoColors.length === 0 ? '100%' : `${100 / repoColors.length}%` |
| 15 | |
| 16 | return ( |
| 17 | <span className="Progress RepoOwnership"> |
| 18 | {repoColors.map((color, index) => |
| 19 | <span |
| 20 | key={index} |
| 21 | className="Progress-item" |
| 22 | style={{ backgroundColor: color as string, width }} |
| 23 | />, |
| 24 | )} |
| 25 | </span> |
| 26 | ) |
| 27 | } |
nothing calls this directly
no outgoing calls
no test coverage detected