@selfcommunity/react-ui 0.10.2-courses.143 → 0.10.2-courses.144
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -59,7 +59,7 @@ function getUrlNextLesson(course) {
|
|
|
59
59
|
return data;
|
|
60
60
|
}
|
|
61
61
|
function getIsNextLessonAvailable(course) {
|
|
62
|
-
return course.sections.some((section) => section.num_lessons_completed < section.num_lessons && section.lessons[section.num_lessons_completed].locked);
|
|
62
|
+
return course.sections.some((section) => section.num_lessons_completed < section.num_lessons && !section.lessons[section.num_lessons_completed].locked);
|
|
63
63
|
}
|
|
64
64
|
const Root = (0, material_1.styled)(material_1.Box, {
|
|
65
65
|
name: constants_1.PREFIX,
|
|
@@ -9,7 +9,7 @@ export declare const getDripDelayAndUnit: (value: number) => {
|
|
|
9
9
|
delay: number;
|
|
10
10
|
_unit: unitType;
|
|
11
11
|
};
|
|
12
|
-
export declare function getCurrentSectionAndLessonIndex(course: SCCourseType, sectionId: number, lessonId: number): {
|
|
12
|
+
export declare function getCurrentSectionAndLessonIndex(course: SCCourseType, sectionId: string | number, lessonId: string | number): {
|
|
13
13
|
currentSectionIndex: any;
|
|
14
14
|
currentLessonIndex: any;
|
|
15
15
|
};
|
|
@@ -57,7 +57,7 @@ function getUrlNextLesson(course) {
|
|
|
57
57
|
return data;
|
|
58
58
|
}
|
|
59
59
|
function getIsNextLessonAvailable(course) {
|
|
60
|
-
return course.sections.some((section) => section.num_lessons_completed < section.num_lessons && section.lessons[section.num_lessons_completed].locked);
|
|
60
|
+
return course.sections.some((section) => section.num_lessons_completed < section.num_lessons && !section.lessons[section.num_lessons_completed].locked);
|
|
61
61
|
}
|
|
62
62
|
const Root = styled(Box, {
|
|
63
63
|
name: PREFIX,
|
|
@@ -9,7 +9,7 @@ export declare const getDripDelayAndUnit: (value: number) => {
|
|
|
9
9
|
delay: number;
|
|
10
10
|
_unit: unitType;
|
|
11
11
|
};
|
|
12
|
-
export declare function getCurrentSectionAndLessonIndex(course: SCCourseType, sectionId: number, lessonId: number): {
|
|
12
|
+
export declare function getCurrentSectionAndLessonIndex(course: SCCourseType, sectionId: string | number, lessonId: string | number): {
|
|
13
13
|
currentSectionIndex: any;
|
|
14
14
|
currentLessonIndex: any;
|
|
15
15
|
};
|