forked from JumboCode/TheLegacyProject
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0b6c2fb
commit 18f2e39
Showing
8 changed files
with
85 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/app/private/[uid]/chapter-leader/home/resources/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import DisplayResources from "@components/DisplayResources"; | ||
import { prisma } from "@server/db/client"; | ||
|
||
const ChapterLeaderResourcesPage = async () => { | ||
const resources = await prisma.resource.findMany({ | ||
where: { | ||
access: { | ||
has: "CHAPTER_LEADER", | ||
}, | ||
}, | ||
}); | ||
return ( | ||
<DisplayResources showRole={false} resources={resources} editable={false} /> | ||
); | ||
}; | ||
|
||
export default ChapterLeaderResourcesPage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import DisplayResources from "@components/DisplayResources"; | ||
import { prisma } from "@server/db/client"; | ||
|
||
const UserResourcesPage = async () => { | ||
const resources = await prisma.resource.findMany({ | ||
where: { | ||
access: { | ||
isEmpty: true, | ||
}, | ||
}, | ||
}); | ||
return ( | ||
<DisplayResources showRole={false} resources={resources} editable={false} /> | ||
); | ||
}; | ||
|
||
export default UserResourcesPage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters