Added tooltip to stats screen

This commit is contained in:
Joao Ramos
2024-02-03 15:11:19 +00:00
parent 0053105dd3
commit 6f11818876
2 changed files with 8 additions and 1 deletions

View File

@@ -170,16 +170,19 @@ export default function Stats() {
icon: <BsFileEarmarkText className="w-6 h-6 md:w-8 md:h-8 text-mti-red-light" />,
value: Object.keys(groupBySession(userStats)).length,
label: "Exams",
tooltip: 'Number of all conducted completed exams',
},
{
icon: <BsPencil className="w-6 h-6 md:w-8 md:h-8 text-mti-red-light" />,
value: userStats.length,
label: "Exercises",
tooltip: 'Number of all conducted exercises including Level Test',
},
{
icon: <BsStar className="w-6 h-6 md:w-8 md:h-8 text-mti-red-light" />,
value: `${userStats.length > 0 ? averageScore(userStats) : 0}%`,
label: "Average Score",
tooltip: 'Average success rate for questions responded',
},
]}
/>