This commit is contained in:
ditiqi 2025-02-27 12:21:59 +08:00
parent 7d05f9f314
commit 705e5ce7f0
1 changed files with 4 additions and 5 deletions

View File

@ -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 (
<>
<PostList
renderItem={(post) => (
<Card edit course={post}></Card>
)}
renderItem={(post) => <PathCard path={post}></PathCard>}
params={{
pageSize: 12,
where: {
type: PostType.COURSE,
type: PostType.PATH,
authorId: user.id,
...termsCondition,
...searchCondition,