diff --git a/src/app/api/file/route.client.ts b/src/app/api/file/route.client.ts index 85c983e3..ae7aa8ad 100644 --- a/src/app/api/file/route.client.ts +++ b/src/app/api/file/route.client.ts @@ -11,6 +11,11 @@ type IFile = z.infer; * Extends the parameters of fetch() function to give types to the RequestBody. */ interface IRequest extends Omit { + + + + + body: IFile; } diff --git a/src/app/private/[uid]/admin/home/page.tsx b/src/app/private/[uid]/admin/home/page.tsx index b7243614..1aac4429 100644 --- a/src/app/private/[uid]/admin/home/page.tsx +++ b/src/app/private/[uid]/admin/home/page.tsx @@ -9,7 +9,9 @@ const AdminHomePageWrapper = async () => { }); - return ; + return ; }; export default AdminHomePageWrapper; diff --git a/src/app/private/[uid]/admin/home/resources/page.tsx b/src/app/private/[uid]/admin/home/resources/page.tsx index f3428ca8..8b91f50f 100644 --- a/src/app/private/[uid]/admin/home/resources/page.tsx +++ b/src/app/private/[uid]/admin/home/resources/page.tsx @@ -1,11 +1,18 @@ import DisplayResources from "@components/DisplayResources"; -import { prisma } from "@server/db/client"; +import { prisma } from +"@server/db/client"; -const AdminResourcesPage = async () => { + +const AdminResourcesPage = + +async () => { const resources = await prisma.resource.findMany(); - return ; + return ; }; -export default AdminResourcesPage; +export default +AdminResourcesPage; diff --git a/src/app/private/[uid]/admin/pending-chapters/page.tsx b/src/app/private/[uid]/admin/pending-chapters/page.tsx index e7b8e40d..c0a14367 100644 --- a/src/app/private/[uid]/admin/pending-chapters/page.tsx +++ b/src/app/private/[uid]/admin/pending-chapters/page.tsx @@ -4,7 +4,8 @@ import { prisma } from "@server/db/client"; const PendingChapters = async () => { // Use prisma to get all pending chapter requests const pendingChapters = await prisma.chapterRequest.findMany({ - where: { approved: "PENDING" }, + where: { + approved: "PENDING" }, }); // Map every chapter request to a pending chapter component and return! return ( @@ -13,6 +14,9 @@ const PendingChapters = async () => { { email={pendingChapter.universityEmail} leadershipExperience={pendingChapter.leadershipExperience} motivation={pendingChapter.motivation} + + + availabilities={pendingChapter.availabilities} questions={pendingChapter.questions} /> diff --git a/src/app/private/layout.tsx b/src/app/private/layout.tsx index 8f428f6d..a0890aa5 100644 --- a/src/app/private/layout.tsx +++ b/src/app/private/layout.tsx @@ -4,7 +4,10 @@ interface IPrivateLayout { children: React.ReactNode; } -const PrivateLayout = ({ children }: IPrivateLayout) => { +const PrivateLayout = ({ + + + children }: IPrivateLayout) => { return {children}; };