Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing on PR instead of on PR approval #106

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/app/api/file/route.client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ type IFile = z.infer<typeof File>;
* Extends the parameters of fetch() function to give types to the RequestBody.
*/
interface IRequest extends Omit<RequestInit, "body"> {





body: IFile;
}

Expand Down
4 changes: 3 additions & 1 deletion src/app/private/[uid]/admin/home/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ const AdminHomePageWrapper = async () => {
});


return <AdminHomePage chapters={chapters} />;
return <AdminHomePage

chapters={chapters} />;
};

export default AdminHomePageWrapper;
15 changes: 11 additions & 4 deletions src/app/private/[uid]/admin/home/resources/page.tsx
Original file line number Diff line number Diff line change
@@ -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 <DisplayResources showRole={true} resources={resources} />;
return <DisplayResources

showRole={true} resources={resources} />;
};

export default AdminResourcesPage;
export default
AdminResourcesPage;
9 changes: 8 additions & 1 deletion src/app/private/[uid]/admin/pending-chapters/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand All @@ -13,13 +14,19 @@ const PendingChapters = async () => {
<ChapterRequest
key={pendingChapter.id}
chapterRequestId={pendingChapter.id}



universityName={pendingChapter.university}
universityAddress={pendingChapter.universityAddress}
name={pendingChapter.firstName + " " + pendingChapter.lastName}
phoneNumber={pendingChapter.phoneNumber}
email={pendingChapter.universityEmail}
leadershipExperience={pendingChapter.leadershipExperience}
motivation={pendingChapter.motivation}



availabilities={pendingChapter.availabilities}
questions={pendingChapter.questions}
/>
Expand Down
5 changes: 4 additions & 1 deletion src/app/private/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ interface IPrivateLayout {
children: React.ReactNode;
}

const PrivateLayout = ({ children }: IPrivateLayout) => {
const PrivateLayout = ({


children }: IPrivateLayout) => {
return <UserProvider>{children}</UserProvider>;
};

Expand Down
Loading