(repoLink: HTMLElement, isPrivate: boolean)
| 53 | } |
| 54 | |
| 55 | function markPrivate(repoLink: HTMLElement, isPrivate: boolean): void { |
| 56 | // GitHub may already show this icon natively, so we match its position |
| 57 | if (isPrivate && !elementExists('.octicon-lock', repoLink)) { |
| 58 | appendBefore( |
| 59 | repoLink, |
| 60 | '.octicon-repo-forked', |
| 61 | <LockIcon className="ml-1 tmp-ml-1" width={12} height={12} />, |
| 62 | ); |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | function addStars(repoLink: HTMLElement, stargazerCount: number, viewerHasStarred: boolean): void { |
| 67 | if (stargazerCount <= 1) { |