add
This commit is contained in:
parent
55fa908391
commit
c6213cdb37
|
@ -83,7 +83,7 @@ export const CourseSyllabus: React.FC<CourseSyllabusProps> = ({
|
||||||
|
|
||||||
<div className="flex-1 overflow-y-auto p-4">
|
<div className="flex-1 overflow-y-auto p-4">
|
||||||
<div className="space-y-4">
|
<div className="space-y-4">
|
||||||
{sections.map((section) => (
|
{sections.map((section, index) => (
|
||||||
<SectionItem
|
<SectionItem
|
||||||
key={section.id}
|
key={section.id}
|
||||||
ref={(el) =>
|
ref={(el) =>
|
||||||
|
@ -91,6 +91,7 @@ export const CourseSyllabus: React.FC<CourseSyllabusProps> = ({
|
||||||
section.id
|
section.id
|
||||||
] = el)
|
] = el)
|
||||||
}
|
}
|
||||||
|
index={index + 1}
|
||||||
section={section}
|
section={section}
|
||||||
isExpanded={expandedSections.includes(
|
isExpanded={expandedSections.includes(
|
||||||
section.id
|
section.id
|
||||||
|
|
Loading…
Reference in New Issue