Updated the dashboard to the v2 version

This commit is contained in:
Tiago Ribeiro
2024-10-03 11:32:43 +01:00
parent 3d4a604aa2
commit b5200c88fc
14 changed files with 2181 additions and 1552 deletions

View File

@@ -132,7 +132,13 @@ export default function Dashboard({user, users, entities, assignments, stats, gr
/>
<IconCard Icon={BsClipboard2Data} label="Exams Performed" value={uniqBy(stats, "exam").length} color="purple" />
<IconCard Icon={BsPaperclip} label="Average Level" value={averageLevelCalculator(stats).toFixed(1)} color="purple" />
<IconCard Icon={BsEnvelopePaper} label="Assignments" value={assignments.filter((a) => !a.archived).length} color="purple" />
<IconCard
Icon={BsEnvelopePaper}
onClick={() => router.push("/assignments")}
label="Assignments"
value={assignments.filter((a) => !a.archived).length}
color="purple"
/>
</section>
</div>