02270803
This commit is contained in:
parent
4c13d70a28
commit
51b37068d0
|
@ -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 (
|
||||
<>
|
||||
<div className="p-4">
|
||||
<CourseList
|
||||
edit
|
||||
<PostList
|
||||
renderItem={post=><CourseCard edit course={post}></CourseCard>}
|
||||
|
||||
params={{
|
||||
pageSize: 12,
|
||||
where: {
|
||||
authorId: user.id,
|
||||
},
|
||||
}}
|
||||
cols={4}></CourseList>
|
||||
cols={4}></PostList>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
|
|
|
@ -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 (
|
||||
<>
|
||||
<div className="p-4">
|
||||
<CourseList
|
||||
<PostList
|
||||
renderItem={post => <CourseCard edit={false} course={post}></CourseCard>}
|
||||
params={{
|
||||
pageSize: 12,
|
||||
where: {
|
||||
|
@ -17,7 +19,7 @@ export default function MyLearningPage() {
|
|||
},
|
||||
},
|
||||
}}
|
||||
cols={4}></CourseList>
|
||||
cols={4}></PostList>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue