training_data/apps/web/src/app/main/my-learning/page.tsx

25 lines
461 B
TypeScript
Raw Normal View History

2025-02-26 21:08:38 +08:00
import CourseList from "@web/src/components/models/course/list/CourseList";
import { useAuth } from "@web/src/providers/auth-provider";
2025-02-26 19:49:50 +08:00
export default function MyLearningPage() {
2025-02-26 21:08:38 +08:00
const { user } = useAuth();
return (
<>
<div className="p-4">
<CourseList
params={{
pageSize: 12,
where: {
2025-02-26 22:03:29 +08:00
students: {
some: {
id: user?.id,
},
},
2025-02-26 21:08:38 +08:00
},
}}
cols={4}></CourseList>
</div>
</>
);
2025-02-26 19:49:50 +08:00
}