66 sendTrackEvent ,
77 sendTrackingLogEvent ,
88} from '@edx/frontend-platform/analytics' ;
9+ import { getConfig } from '@edx/frontend-platform' ;
910import { useIntl } from '@edx/frontend-platform/i18n' ;
1011import { useSelector } from 'react-redux' ;
1112import SequenceExamWrapper from '@edx/frontend-lib-special-exams' ;
@@ -19,7 +20,6 @@ import { CourseOutlineSidebarTriggerSlot } from '@src/plugin-slots/CourseOutline
1920import { NotificationsDiscussionsSidebarSlot } from '@src/plugin-slots/NotificationsDiscussionsSidebarSlot' ;
2021import SequenceNavigationSlot from '@src/plugin-slots/SequenceNavigationSlot' ;
2122
22- import { getCoursewareOutlineSidebarSettings } from '../../data/selectors' ;
2323import CourseLicense from '../course-license' ;
2424import messages from './messages' ;
2525import HiddenAfterDue from './hidden-after-due' ;
@@ -48,7 +48,6 @@ const Sequence = ({
4848 const unit = useModel ( 'units' , unitId ) ;
4949 const sequenceStatus = useSelector ( state => state . courseware . sequenceStatus ) ;
5050 const sequenceMightBeUnit = useSelector ( state => state . courseware . sequenceMightBeUnit ) ;
51- const { enableNavigationSidebar : isEnabledOutlineSidebar } = useSelector ( getCoursewareOutlineSidebarSettings ) ;
5251 const handleNext = ( ) => {
5352 const nextIndex = sequence . unitIds . indexOf ( unitId ) + 1 ;
5453 const newUnitId = sequence . unitIds [ nextIndex ] ;
@@ -171,7 +170,7 @@ const Sequence = ({
171170 />
172171 < CourseOutlineSidebarSlot />
173172 < div className = "sequence w-100" >
174- { ! isEnabledOutlineSidebar && (
173+ { ! getConfig ( ) . ENABLE_SEQUENCE_NAVIGATION && (
175174 < div className = "sequence-navigation-container" >
176175 < SequenceNavigationSlot
177176 sequenceId = { sequenceId }
@@ -204,7 +203,6 @@ const Sequence = ({
204203 unitId = { unitId }
205204 unitLoadedHandler = { handleUnitLoaded }
206205 isOriginalUserStaff = { originalUserIsStaff }
207- isEnabledOutlineSidebar = { isEnabledOutlineSidebar }
208206 renderUnitNavigation = { renderUnitNavigation }
209207 />
210208 { unitHasLoaded && renderUnitNavigation ( false ) }
0 commit comments