Update repo-card.js

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