richie-education 2.30.1-dev4 → 2.30.1-dev5
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.
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Button } from '@openfun/cunningham-react';
|
|
1
2
|
import { defineMessages, FormattedMessage, useIntl } from 'react-intl';
|
|
2
3
|
import { CourseRun, CourseRunDisplayMode, PacedCourse } from 'types';
|
|
3
4
|
import useDateFormat from 'hooks/useDateFormat';
|
|
@@ -76,9 +77,9 @@ const OpenedSelfPacedCourseRun = ({
|
|
|
76
77
|
{findLmsBackend(courseRun.resource_link) ? (
|
|
77
78
|
<CourseRunEnrollment courseRun={courseRun} />
|
|
78
79
|
) : (
|
|
79
|
-
<
|
|
80
|
+
<Button className="course-run-enrollment__cta" href={courseRun.resource_link} fullWidth>
|
|
80
81
|
{StringHelper.capitalizeFirst(courseRun.state.call_to_action)}
|
|
81
|
-
</
|
|
82
|
+
</Button>
|
|
82
83
|
)}
|
|
83
84
|
</>
|
|
84
85
|
);
|
|
@@ -85,7 +85,7 @@ const SyllabusCourseRunsList = ({
|
|
|
85
85
|
</div>
|
|
86
86
|
)}
|
|
87
87
|
{openedRuns.length === 1 &&
|
|
88
|
-
(course.is_self_paced && openedRuns[0].state.priority
|
|
88
|
+
(course.is_self_paced && openedRuns[0].state.priority === Priority.ONGOING_OPEN ? (
|
|
89
89
|
<div className="course-detail__row course-detail__runs course-detail__runs--open">
|
|
90
90
|
<SyllabusCourseRunCompacted
|
|
91
91
|
courseRun={openedRuns[0]}
|