From 705e5ce7f02a3559d53b28565b72ade274cace9a Mon Sep 17 00:00:00 2001 From: ditiqi Date: Thu, 27 Feb 2025 12:21:59 +0800 Subject: [PATCH] add --- .../app/main/my-path/components/MyPathListContainer.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/apps/web/src/app/main/my-path/components/MyPathListContainer.tsx b/apps/web/src/app/main/my-path/components/MyPathListContainer.tsx index dad21c9..ebbba92 100644 --- a/apps/web/src/app/main/my-path/components/MyPathListContainer.tsx +++ b/apps/web/src/app/main/my-path/components/MyPathListContainer.tsx @@ -1,9 +1,10 @@ import PostList from "@web/src/components/models/course/list/PostList"; import { useAuth } from "@web/src/providers/auth-provider"; -import CourseCard from "../../courses/components/CourseCard"; + import { PostType } from "@nice/common"; import { useMainContext } from "../../layout/MainProvider"; +import PathCard from "../../path/components/PathCard"; export default function MyPathListContainer() { const { user } = useAuth(); @@ -11,13 +12,11 @@ export default function MyPathListContainer() { return ( <> ( - - )} + renderItem={(post) => } params={{ pageSize: 12, where: { - type: PostType.COURSE, + type: PostType.PATH, authorId: user.id, ...termsCondition, ...searchCondition,