diff --git a/src/components/Course/ChallengeView.tsx b/src/components/Course/ChallengeView.tsx
index af32ad66f..83c0118c3 100644
--- a/src/components/Course/ChallengeView.tsx
+++ b/src/components/Course/ChallengeView.tsx
@@ -27,8 +27,7 @@ type ChallengeViewProps = {
};
export function ChallengeView(props: ChallengeViewProps) {
- const { children, title, course, lesson, courseId, lessonId, chapterId } =
- props;
+ const { children, title, course, lesson, courseId, chapterId } = props;
const { chapters } = course;
const { frontmatter } = lesson;
@@ -39,6 +38,7 @@ export function ChallengeView(props: ChallengeViewProps) {
courseId={courseId}
chapterId={chapterId}
lessonId={lesson.id}
+ lesson={lesson}
title={title}
chapters={chapters}
completedPercentage={0}
diff --git a/src/components/Course/CourseLayout.tsx b/src/components/Course/CourseLayout.tsx
index 50c96c820..1b12cf60f 100644
--- a/src/components/Course/CourseLayout.tsx
+++ b/src/components/Course/CourseLayout.tsx
@@ -3,12 +3,13 @@ import { CourseSidebar, type CourseSidebarProps } from './CourseSidebar';
import { useMemo } from 'react';
type CourseLayoutProps = {
+ isSubmitted?: boolean;
children: React.ReactNode;
} & CourseSidebarProps;
export function CourseLayout(props: CourseLayoutProps) {
- const { children, ...sidebarProps } = props;
- const { chapters, courseId, chapterId, lessonId } = sidebarProps;
+ const { children, isSubmitted, ...sidebarProps } = props;
+ const { chapters, courseId, chapterId, lessonId, lesson } = sidebarProps;
const allLessonLinks = useMemo(() => {
const lessons: string[] = [];
@@ -51,6 +52,14 @@ export function CourseLayout(props: CourseLayoutProps) {
-
)}