mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-26 15:48:32 -06:00
view todays lectures from home
This commit is contained in:
26
nextjs/src/app/todaysLectures/TodaysLectures.tsx
Normal file
26
nextjs/src/app/todaysLectures/TodaysLectures.tsx
Normal file
@@ -0,0 +1,26 @@
|
||||
"use client";
|
||||
|
||||
import { useLocalCoursesSettingsQuery } from "@/hooks/localCourse/localCoursesHooks";
|
||||
import OneCourseLectures from "./OneCourseLectures";
|
||||
import { SuspenseAndErrorHandling } from "@/components/SuspenseAndErrorHandling";
|
||||
import CourseContextProvider from "../course/[courseName]/context/CourseContextProvider";
|
||||
|
||||
export default function TodaysLectures() {
|
||||
const { data: allSettings } = useLocalCoursesSettingsQuery();
|
||||
return (
|
||||
<div className="w-full">
|
||||
{/* <h3 className="text-center text-slate-400">todays lectures</h3> */}
|
||||
<div className="flex justify-around w-full">
|
||||
<SuspenseAndErrorHandling>
|
||||
{allSettings.map((settings) => (
|
||||
<div key={settings.name} className="flex-shrink">
|
||||
<CourseContextProvider localCourseName={settings.name}>
|
||||
<OneCourseLectures />
|
||||
</CourseContextProvider>
|
||||
</div>
|
||||
))}
|
||||
</SuspenseAndErrorHandling>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user