mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-26 15:48:32 -06:00
got the middle scrolling correct
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import { LocalModule } from "@/models/local/localModules";
|
||||
import React from "react";
|
||||
|
||||
export default function ExpandableModule({ module }: { module: LocalModule }) {
|
||||
return (
|
||||
<details>
|
||||
<summary> {module.name}</summary>
|
||||
expanded details
|
||||
</details>
|
||||
);
|
||||
}
|
||||
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