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' ;
@@ -15,7 +16,6 @@ import { useModel } from '@src/generic/model-store';
1516import { useSequenceBannerTextAlert , useSequenceEntranceExamAlert } from '@src/alerts/sequence-alerts/hooks' ;
1617import SequenceContainerSlot from '../../../plugin-slots/SequenceContainerSlot' ;
1718
18- import { getCoursewareOutlineSidebarSettings } from '../../data/selectors' ;
1919import CourseLicense from '../course-license' ;
2020import { NotificationsDiscussionsSidebarSlot } from '../../../plugin-slots/NotificationsDiscussionsSidebarSlot' ;
2121import messages from './messages' ;
@@ -47,7 +47,6 @@ const Sequence = ({
4747 const unit = useModel ( 'units' , unitId ) ;
4848 const sequenceStatus = useSelector ( state => state . courseware . sequenceStatus ) ;
4949 const sequenceMightBeUnit = useSelector ( state => state . courseware . sequenceMightBeUnit ) ;
50- const { enableNavigationSidebar : isEnabledOutlineSidebar } = useSelector ( getCoursewareOutlineSidebarSettings ) ;
5150 const handleNext = ( ) => {
5251 const nextIndex = sequence . unitIds . indexOf ( unitId ) + 1 ;
5352 const newUnitId = sequence . unitIds [ nextIndex ] ;
@@ -170,7 +169,7 @@ const Sequence = ({
170169 />
171170 < CourseOutlineSidebarSlot />
172171 < div className = "sequence w-100" >
173- { ! isEnabledOutlineSidebar && (
172+ { ! getConfig ( ) . ENABLE_SEQUENCE_NAVIGATION && (
174173 < div className = "sequence-navigation-container" >
175174 < SequenceNavigation
176175 sequenceId = { sequenceId }
@@ -203,7 +202,6 @@ const Sequence = ({
203202 unitId = { unitId }
204203 unitLoadedHandler = { handleUnitLoaded }
205204 isOriginalUserStaff = { originalUserIsStaff }
206- isEnabledOutlineSidebar = { isEnabledOutlineSidebar }
207205 renderUnitNavigation = { renderUnitNavigation }
208206 />
209207 { unitHasLoaded && renderUnitNavigation ( false ) }
0 commit comments