From 15a5f0eb58e92991f4f436a69c01926a90f297ca Mon Sep 17 00:00:00 2001 From: JuliaZel Date: Wed, 28 Feb 2024 19:44:56 -0500 Subject: [PATCH 1/3] messed up styling --- src/app/api/file/route.client.ts | 5 +++++ src/app/private/layout.tsx | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) 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/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}; }; From 879dca9acbaac388de48a77174dd4feb348742fd Mon Sep 17 00:00:00 2001 From: JuliaZel Date: Wed, 28 Feb 2024 19:49:44 -0500 Subject: [PATCH 2/3] small changes in one file - styling errors to fix --- src/app/private/[uid]/admin/pending-chapters/page.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/private/[uid]/admin/pending-chapters/page.tsx b/src/app/private/[uid]/admin/pending-chapters/page.tsx index e7b8e40d..665f0bf7 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 () => { Date: Wed, 28 Feb 2024 19:59:43 -0500 Subject: [PATCH 3/3] change one page layout --- src/app/private/[uid]/admin/home/resources/page.tsx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/app/private/[uid]/admin/home/resources/page.tsx b/src/app/private/[uid]/admin/home/resources/page.tsx index f3428ca8..71fb1308 100644 --- a/src/app/private/[uid]/admin/home/resources/page.tsx +++ b/src/app/private/[uid]/admin/home/resources/page.tsx @@ -1,11 +1,16 @@ 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 ; }; -export default AdminResourcesPage; +export default +AdminResourcesPage;