From 51b37068d039ef62df92e9563d4a5d6664af14b0 Mon Sep 17 00:00:00 2001 From: longdayi <13477510+longdayilongdayi@user.noreply.gitee.com> Date: Thu, 27 Feb 2025 08:03:31 +0800 Subject: [PATCH] 02270803 --- apps/web/src/app/main/my-duty/page.tsx | 10 ++++++---- apps/web/src/app/main/my-learning/page.tsx | 8 +++++--- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/apps/web/src/app/main/my-duty/page.tsx b/apps/web/src/app/main/my-duty/page.tsx index fd33761..64a529f 100644 --- a/apps/web/src/app/main/my-duty/page.tsx +++ b/apps/web/src/app/main/my-duty/page.tsx @@ -1,20 +1,22 @@ -import CourseList from "@web/src/components/models/course/list/CourseList"; +import PostList from "@web/src/components/models/course/list/PostList"; import { useAuth } from "@web/src/providers/auth-provider"; +import CourseCard from "../courses/components/CourseCard"; export default function MyDutyPage() { const { user } = useAuth(); return ( <>
- } + params={{ pageSize: 12, where: { authorId: user.id, }, }} - cols={4}> + cols={4}>
); diff --git a/apps/web/src/app/main/my-learning/page.tsx b/apps/web/src/app/main/my-learning/page.tsx index 8807119..14278e8 100644 --- a/apps/web/src/app/main/my-learning/page.tsx +++ b/apps/web/src/app/main/my-learning/page.tsx @@ -1,12 +1,14 @@ -import CourseList from "@web/src/components/models/course/list/CourseList"; +import PostList from "@web/src/components/models/course/list/PostList"; import { useAuth } from "@web/src/providers/auth-provider"; +import CourseCard from "../courses/components/CourseCard"; export default function MyLearningPage() { const { user } = useAuth(); return ( <>
- } params={{ pageSize: 12, where: { @@ -17,7 +19,7 @@ export default function MyLearningPage() { }, }, }} - cols={4}> + cols={4}>
);