mirror of
https://github.com/anuraghazra/github-readme-stats.git
synced 2025-01-30 14:08:14 +08:00
Stats card: Reorder total reviews count position (#2834)
This commit is contained in:
parent
22a12e1ade
commit
7a89ceedc9
@ -160,6 +160,16 @@ const renderStatsCard = (stats = {}, options = { hide: [] }) => {
|
||||
value: totalPRs,
|
||||
id: "prs",
|
||||
};
|
||||
|
||||
if (show_total_reviews) {
|
||||
STATS.reviews = {
|
||||
icon: icons.reviews,
|
||||
label: i18n.t("statcard.reviews"),
|
||||
value: totalReviews,
|
||||
id: "reviews",
|
||||
};
|
||||
}
|
||||
|
||||
STATS.issues = {
|
||||
icon: icons.issues,
|
||||
label: i18n.t("statcard.issues"),
|
||||
@ -173,16 +183,6 @@ const renderStatsCard = (stats = {}, options = { hide: [] }) => {
|
||||
id: "contribs",
|
||||
};
|
||||
|
||||
// Extra stats items.
|
||||
if (show_total_reviews) {
|
||||
STATS.reviews = {
|
||||
icon: icons.reviews,
|
||||
label: i18n.t("statcard.reviews"),
|
||||
value: totalReviews,
|
||||
id: "reviews",
|
||||
};
|
||||
}
|
||||
|
||||
const longLocales = [
|
||||
"cn",
|
||||
"es",
|
||||
|
Loading…
Reference in New Issue
Block a user