mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-25 23:28:33 -06:00
got the middle scrolling correct
This commit is contained in:
16
nextjs/src/app/course/[courseName]/modules/ModuleList.tsx
Normal file
16
nextjs/src/app/course/[courseName]/modules/ModuleList.tsx
Normal 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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user