Skip to content

Commit

Permalink
🔧 Fix categories labels for statistics
Browse files Browse the repository at this point in the history
  • Loading branch information
ZenikAdrien committed Sep 1, 2022
1 parent 0fc94cf commit ac5b1e5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 17 deletions.
2 changes: 1 addition & 1 deletion i18n/fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export default {
Practices: "Ajoute des compétences dans la grille Pratiques",
Activities: "Ajoute des compétences dans la grille Activités",
Knowledge: "Ajoute des compétences dans la grille Connaissances",
Postures: "Ajoute des compétences dans la grille Postures",
Behaviors: "Ajoute des compétences dans la grille Postures",
Profile: "Compléter son profil",
},
},
Expand Down
24 changes: 8 additions & 16 deletions src/components/profile/statistics/Statistics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,47 +37,39 @@ export const Statistics = ({
themeToCompare="practices"
datas={userAchievements}
src="/img/badges/badge.svg"
titleSubobjective={t(
"statistics.subobjectivesTitles.LanguageAndFrameworks"
)}
titleSubobjective={t("statistics.subobjectivesTitles.Practices")}
descriptionSubobjective={
myStatistics
? t("statistics.subobjectivesLegends.LanguageAndFrameworks")
: ""
myStatistics ? t("statistics.subobjectivesLegends.Practices") : ""
}
countSkills={filterCountSkills("practices")}
/>
<BadgeSubojectivesCategoryCompletion
themeToCompare="activities"
datas={userAchievements}
src="/img/badges/badge.svg"
titleSubobjective={t("statistics.subobjectivesTitles.Plateform")}
titleSubobjective={t("statistics.subobjectivesTitles.Activities")}
descriptionSubobjective={
myStatistics ? t("statistics.subobjectivesLegends.Plateform") : ""
myStatistics ? t("statistics.subobjectivesLegends.Activities") : ""
}
countSkills={filterCountSkills("activities")}
/>
<BadgeSubojectivesCategoryCompletion
themeToCompare="knowledge"
datas={userAchievements}
src="/img/badges/badge.svg"
titleSubobjective={t("statistics.subobjectivesTitles.Tools")}
titleSubobjective={t("statistics.subobjectivesTitles.Knowledge")}
descriptionSubobjective={
myStatistics ? t("statistics.subobjectivesLegends.Tools") : ""
myStatistics ? t("statistics.subobjectivesLegends.Knowledge") : ""
}
countSkills={filterCountSkills("knowledge")}
/>
<BadgeSubojectivesCategoryCompletion
themeToCompare="behaviors"
datas={userAchievements}
src="/img/badges/badge.svg"
titleSubobjective={t(
"statistics.subobjectivesTitles.TechnicsAndMethod"
)}
titleSubobjective={t("statistics.subobjectivesTitles.Behaviors")}
descriptionSubobjective={
myStatistics
? t("statistics.subobjectivesLegends.TechnicsAndMethod")
: ""
myStatistics ? t("statistics.subobjectivesLegends.Behaviors") : ""
}
countSkills={filterCountSkills("behaviors")}
/>
Expand Down

0 comments on commit ac5b1e5

Please sign in to comment.