From 184a5fd820dfd2ba6a55cd06ebf33642be8340c2 Mon Sep 17 00:00:00 2001 From: Tiago Ribeiro Date: Fri, 18 Oct 2024 14:33:08 +0100 Subject: [PATCH] Added the entity to the classroom --- src/pages/classrooms/[id].tsx | 64 +++++++++++++++++++---------------- 1 file changed, 35 insertions(+), 29 deletions(-) diff --git a/src/pages/classrooms/[id].tsx b/src/pages/classrooms/[id].tsx index 1ae4c83c..9a6e6f62 100644 --- a/src/pages/classrooms/[id].tsx +++ b/src/pages/classrooms/[id].tsx @@ -26,7 +26,7 @@ import Link from "next/link"; import {useRouter} from "next/router"; import {Divider} from "primereact/divider"; import {useEffect, useMemo, useState} from "react"; -import {BsChevronLeft, BsClockFill, BsEnvelopeFill, BsFillPersonVcardFill, BsPlus, BsStopwatchFill, BsTag, BsTrash, BsX} from "react-icons/bs"; +import {BsBuilding, BsChevronLeft, BsClockFill, BsEnvelopeFill, BsFillPersonVcardFill, BsPlus, BsStopwatchFill, BsTag, BsTrash, BsX} from "react-icons/bs"; import {toast, ToastContainer} from "react-toastify"; export const getServerSideProps = withIronSessionSsr(async ({req, res, params}) => { @@ -185,38 +185,44 @@ export default function Home({user, group, users, entity}: Props) { {user && (
-
-
-
- - - -

{group.name}

-
+
+
+
+ + + +

{group.name}

+
+ + {!isAdding && ( +
+ + +
+ )} +
+
+ + {entity.label} + {getUserName(group.admin)}
- {!isAdding && ( -
- - -
- )}