add
This commit is contained in:
parent
7d05f9f314
commit
705e5ce7f0
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue