got the middle scrolling correct

This commit is contained in:
2024-08-27 20:52:41 -06:00
parent 72f391dcf9
commit 6d760dbe6c
6 changed files with 35 additions and 11 deletions

View File

@@ -0,0 +1,16 @@
"use client";
import { useCourseContext } from "../context/courseContext";
import ExpandableModule from "./ExpandableModule";
export default function ModuleList() {
const {
localCourse: { modules },
} = useCourseContext();
return (
<div>
{modules.map((m) => (
<ExpandableModule key={m.name} module={m} />
))}
</div>
);
}