diff --git a/app/src/features/course/components/course-page.tsx b/app/src/features/course/components/course-page.tsx index e6105c9..ef276da 100644 --- a/app/src/features/course/components/course-page.tsx +++ b/app/src/features/course/components/course-page.tsx @@ -176,9 +176,9 @@ function CourseCard({ {isOpen ? ( @@ -210,7 +210,15 @@ function isCourseCompleted(course: CourseItem): boolean { return course.steps.length > 0 && course.steps.every((step) => step.state === "COMPLETED"); } -function CourseStepRow({ courseId, step }: { courseId: number; step: CourseStep }) { +function CourseStepRow({ + courseId, + displayOrder, + step, +}: { + courseId: number; + displayOrder: number; + step: CourseStep; +}) { const isLocked = step.state === "LOCKED"; const href = getStepHref(courseId, step); @@ -220,14 +228,14 @@ function CourseStepRow({ courseId, step }: { courseId: number; step: CourseStep isLocked ? "bg-surface-muted text-ink-muted" : "bg-primary text-primary-fg" }`} > - {isLocked ?