Created a groups page for students and teachers
This commit is contained in:
@@ -54,7 +54,7 @@ export default function MasterCorporateDashboard({user}: Props) {
|
||||
const {stats} = useStats();
|
||||
const {users, reload} = useUsers();
|
||||
const {codes} = useCodes(user.id);
|
||||
const {groups} = useGroups(user.id, user.type);
|
||||
const {groups} = useGroups({admin: user.id, userType: user.type});
|
||||
|
||||
const masterCorporateUserGroups = [...new Set(groups.filter((u) => u.admin === user.id).flatMap((g) => g.participants))];
|
||||
const corporateUserGroups = [...new Set(groups.flatMap((g) => g.participants))];
|
||||
|
||||
Reference in New Issue
Block a user