Update repo-card.js

This commit is contained in:
Zohan Subhash
2023-01-17 16:07:42 +05:30
committed by GitHub
parent e245941e5a
commit 55a3cecd49
+4 -6
View File
@@ -123,20 +123,18 @@ const renderRepoCard = (repo, options = {}) => {
isTemplate,
starCount,
forkCount,
highlight,
} = repo;
if (!highlight) {
highlight = isTemplate
const highlight = repo.highlight
? // @ts-ignore
getBadgeSVG(repo.highlight)
: isTemplate
? // @ts-ignore
getBadgeSVG(i18n.t("repocard.template"), colors.textColor)
: isArchived
? // @ts-ignore
getBadgeSVG(i18n.t("repocard.archived"), colors.textColor)
: ""
} else {
highlight = getBadgeSVG(highlight);
}
const lineHeight = 10;
const header = show_owner ? nameWithOwner : name;