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 PostList from "@web/src/components/models/course/list/PostList";
import { useAuth } from "@web/src/providers/auth-provider"; import { useAuth } from "@web/src/providers/auth-provider";
import CourseCard from "../../courses/components/CourseCard";
import { PostType } from "@nice/common"; import { PostType } from "@nice/common";
import { useMainContext } from "../../layout/MainProvider"; import { useMainContext } from "../../layout/MainProvider";
import PathCard from "../../path/components/PathCard";
export default function MyPathListContainer() { export default function MyPathListContainer() {
const { user } = useAuth(); const { user } = useAuth();
@ -11,13 +12,11 @@ export default function MyPathListContainer() {
return ( return (
<> <>
<PostList <PostList
renderItem={(post) => ( renderItem={(post) => <PathCard path={post}></PathCard>}
<Card edit course={post}></Card>
)}
params={{ params={{
pageSize: 12, pageSize: 12,
where: { where: {
type: PostType.COURSE, type: PostType.PATH,
authorId: user.id, authorId: user.id,
...termsCondition, ...termsCondition,
...searchCondition, ...searchCondition,