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

@@ -96,7 +96,7 @@ export default function Home({user, groups}: Props) {
return (
<>
<Head>
<title>Groups | EnCoach</title>
<title>Classrooms | EnCoach</title>
<meta
name="description"
content="A training platform for the IELTS exam provided by the Muscat Training Institute and developed by eCrop."
@@ -105,18 +105,16 @@ export default function Home({user, groups}: Props) {
<link rel="icon" href="/favicon.ico" />
</Head>
<ToastContainer />
{user && (
<Layout user={user} className="!gap-4">
<section className="flex flex-col gap-4 w-full h-full">
<div className="flex flex-col gap-4">
<h2 className="font-bold text-2xl">Classrooms</h2>
<Separator />
</div>
<Layout user={user} className="!gap-4">
<section className="flex flex-col gap-4 w-full h-full">
<div className="flex flex-col gap-4">
<h2 className="font-bold text-2xl">Classrooms</h2>
<Separator />
</div>
<CardList<GroupWithUsers> list={groups} searchFields={SEARCH_FIELDS} renderCard={renderCard} firstCard={firstCard} />
</section>
</Layout>
)}
<CardList<GroupWithUsers> list={groups} searchFields={SEARCH_FIELDS} renderCard={renderCard} firstCard={firstCard} />
</section>
</Layout>
</>
);
}