Updated the groups section for the teachers and admins
This commit is contained in:
@@ -91,7 +91,7 @@ export default function TeacherDashboard({user}: Props) {
|
||||
};
|
||||
|
||||
const GroupsList = () => {
|
||||
const filter = (x: Group) => x.admin === user.id;
|
||||
const filter = (x: Group) => x.admin === user.id || x.participants.includes(user.id);
|
||||
|
||||
return (
|
||||
<>
|
||||
@@ -126,7 +126,7 @@ export default function TeacherDashboard({user}: Props) {
|
||||
};
|
||||
|
||||
const DefaultDashboard = () => (
|
||||
<div className="flex flex-col gap-4">
|
||||
<>
|
||||
<section className="flex -lg:flex-wrap gap-4 items-center -lg:justify-center lg:justify-start text-center">
|
||||
<IconCard
|
||||
onClick={() => setPage("students")}
|
||||
@@ -188,7 +188,7 @@ export default function TeacherDashboard({user}: Props) {
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user