From 229275aaee386df467debc44844bd580584faa6d Mon Sep 17 00:00:00 2001 From: Tiago Ribeiro Date: Sat, 17 Aug 2024 20:18:28 +0100 Subject: [PATCH] Created a groups page for students and teachers --- src/components/Sidebar.tsx | 4 + src/dashboards/Admin.tsx | 1237 +++++++++--------- src/dashboards/Agent.tsx | 486 ++++--- src/dashboards/Corporate.tsx | 2 +- src/dashboards/CorporateStudentsLevels.tsx | 216 ++-- src/dashboards/MasterCorporate.tsx | 2 +- src/dashboards/Teacher.tsx | 2 +- src/hooks/useGroups.tsx | 20 +- src/pages/(admin)/Lists/GroupList.tsx | 10 +- src/pages/(admin)/Lists/UserList.tsx | 2 +- src/pages/(status)/PaymentDue.tsx | 2 +- src/pages/groups.tsx | 119 ++ src/pages/profile.tsx | 1337 +++++++++----------- src/pages/record.tsx | 97 +- src/pages/stats.tsx | 4 +- src/pages/training/index.tsx | 698 +++++----- 16 files changed, 2016 insertions(+), 2222 deletions(-) create mode 100644 src/pages/groups.tsx diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx index d69feebf..6119e11f 100644 --- a/src/components/Sidebar.tsx +++ b/src/components/Sidebar.tsx @@ -13,6 +13,7 @@ import { BsCurrencyDollar, BsClipboardData, BsFileLock, + BsPeople, } from "react-icons/bs"; import {CiDumbbell} from "react-icons/ci"; import {RiLogoutBoxFill} from "react-icons/ri"; @@ -109,6 +110,9 @@ export default function Sidebar({path, navDisabled = false, focusMode = false, u {checkAccess(user, getTypesOfUser(["agent"]), permissions, "viewStats") && (