diff --git a/src/components/ProfileSummary.tsx b/src/components/ProfileSummary.tsx index 095b6202..40627645 100644 --- a/src/components/ProfileSummary.tsx +++ b/src/components/ProfileSummary.tsx @@ -12,6 +12,7 @@ interface Props { icon: ReactElement; value: string | number; label: string; + tooltip?: string; }[]; children?: ReactElement; } @@ -48,7 +49,10 @@ export default function ProfileSummary({user, items}: Props) {
{items.map((item) => (
-
+
{item.icon}
diff --git a/src/pages/stats.tsx b/src/pages/stats.tsx index 36206207..ea8f9886 100644 --- a/src/pages/stats.tsx +++ b/src/pages/stats.tsx @@ -170,16 +170,19 @@ export default function Stats() { icon: , value: Object.keys(groupBySession(userStats)).length, label: "Exams", + tooltip: 'Number of all conducted completed exams', }, { icon: , value: userStats.length, label: "Exercises", + tooltip: 'Number of all conducted exercises including Level Test', }, { icon: , value: `${userStats.length > 0 ? averageScore(userStats) : 0}%`, label: "Average Score", + tooltip: 'Average success rate for questions responded', }, ]} />