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

25 lines
461 B
TypeScript

import CourseList from "@web/src/components/models/course/list/CourseList";
import { useAuth } from "@web/src/providers/auth-provider";
export default function MyLearningPage() {
const { user } = useAuth();
return (
<>
<div className="p-4">
<CourseList
params={{
pageSize: 12,
where: {
students: {
some: {
id: user?.id,
},
},
},
}}
cols={4}></CourseList>
</div>
</>
);
}