MCPcopy Create free account
hub / github.com/emwalker/digraph / RepoOwnership

Function RepoOwnership

client/src/components/ui/RepoOwnership/index.tsx:10–27  ·  view source on GitHub ↗
(props: Props)

Source from the content-addressed store, hash-verified

8}
9
10export 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected