@@ -5,12 +5,12 @@ import { useParams } from 'react-router-dom';
55import {
66 Container , Layout , Stack , Button , TransitionReplace ,
77} from '@openedx/paragon' ;
8- import { getConfig } from '@edx/frontend-platform' ;
9- import { useIntl , injectIntl } from '@edx/frontend-platform/i18n' ;
8+ import { useIntl } from '@edx/frontend-platform/i18n' ;
109import {
1110 Warning as WarningIcon ,
1211 CheckCircle as CheckCircleIcon ,
1312} from '@openedx/paragon/icons' ;
13+ import { CourseAuthoringUnitSidebarSlot } from '../plugin-slots/CourseAuthoringUnitSidebarSlot' ;
1414
1515import { getProcessingNotification } from '../generic/processing-notification/data/selectors' ;
1616import SubHeader from '../generic/sub-header/SubHeader' ;
@@ -30,9 +30,6 @@ import Sidebar from './sidebar';
3030import SplitTestSidebarInfo from './sidebar/SplitTestSidebarInfo' ;
3131import { useCourseUnit , useLayoutGrid , useScrollToLastPosition } from './hooks' ;
3232import messages from './messages' ;
33- import PublishControls from './sidebar/PublishControls' ;
34- import LocationInfo from './sidebar/LocationInfo' ;
35- import TagsSidebarControls from '../content-tags-drawer/tags-sidebar-controls' ;
3633import { PasteNotificationAlert } from './clipboard' ;
3734import XBlockContainerIframe from './xblock-container-iframe' ;
3835import MoveModal from './move-modal' ;
@@ -225,19 +222,11 @@ const CourseUnit = ({ courseId }) => {
225222 < Layout . Element >
226223 < Stack gap = { 3 } >
227224 { isUnitVerticalType && (
228- < >
229- < Sidebar data-testid = "course-unit-sidebar" >
230- < PublishControls blockId = { blockId } />
231- </ Sidebar >
232- { getConfig ( ) . ENABLE_TAGGING_TAXONOMY_PAGES === 'true' && (
233- < Sidebar className = "tags-sidebar" >
234- < TagsSidebarControls />
235- </ Sidebar >
236- ) }
237- < Sidebar data-testid = "course-unit-location-sidebar" >
238- < LocationInfo />
239- </ Sidebar >
240- </ >
225+ < CourseAuthoringUnitSidebarSlot
226+ courseId = { courseId }
227+ blockId = { blockId }
228+ unitTitle = { unitTitle }
229+ />
241230 ) }
242231 { isSplitTestType && (
243232 < Sidebar data-testid = "course-split-test-sidebar" >
@@ -267,4 +256,4 @@ CourseUnit.propTypes = {
267256 courseId : PropTypes . string . isRequired ,
268257} ;
269258
270- export default injectIntl ( CourseUnit ) ;
259+ export default CourseUnit ;
0 commit comments