diff --git a/src/courseware/course/sequence/Unit/__snapshots__/index.test.jsx.snap b/src/courseware/course/sequence/Unit/__snapshots__/index.test.jsx.snap index 63b0fb5a11..4298e819b4 100644 --- a/src/courseware/course/sequence/Unit/__snapshots__/index.test.jsx.snap +++ b/src/courseware/course/sequence/Unit/__snapshots__/index.test.jsx.snap @@ -23,16 +23,17 @@ exports[`Unit component output snapshot: not bookmarked, do not show content 1`]
-

- unit-title -

+ > +

+ unit-title +

+

-

{unit.title}

- + +

{unit.title}

+

{formatMessage(messages.headerPlaceholder)}

📚: {courseId}

📙: {unitId}

-

📙: {unitTitle}

+

🎩: {unitTitle}

), }, diff --git a/src/plugin-slots/UnitTitleSlot/images/post_unit_title.png b/src/plugin-slots/UnitTitleSlot/images/post_unit_title.png index b0adc94c20..4985592803 100644 Binary files a/src/plugin-slots/UnitTitleSlot/images/post_unit_title.png and b/src/plugin-slots/UnitTitleSlot/images/post_unit_title.png differ diff --git a/src/plugin-slots/UnitTitleSlot/index.jsx b/src/plugin-slots/UnitTitleSlot/index.jsx index 23d501a079..31562cf7d9 100644 --- a/src/plugin-slots/UnitTitleSlot/index.jsx +++ b/src/plugin-slots/UnitTitleSlot/index.jsx @@ -1,7 +1,9 @@ import PropTypes from 'prop-types'; import { PluginSlot } from '@openedx/frontend-plugin-framework'; -const UnitTitleSlot = ({ courseId, unitId, unitTitle }) => ( +const UnitTitleSlot = ({ + courseId, unitId, unitTitle, children, +}) => ( ( unitId, unitTitle, }} - /> + > + {children} + ); UnitTitleSlot.propTypes = { courseId: PropTypes.string.isRequired, unitId: PropTypes.string.isRequired, unitTitle: PropTypes.string.isRequired, + children: PropTypes.element.isRequired, }; export default UnitTitleSlot;