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

GitHub action test 2 - testing prettier action #105

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

export default AdminResourcesPage;
export default
AdminResourcesPage;
6 changes: 5 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,6 +14,9 @@ const PendingChapters = async () => {
<ChapterRequest
key={pendingChapter.id}
chapterRequestId={pendingChapter.id}



universityName={pendingChapter.university}
universityAddress={pendingChapter.universityAddress}
name={pendingChapter.firstName + " " + pendingChapter.lastName}
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