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 }
@@ -187,10 +186,6 @@ const Sequence = ({
187186 logEvent ( 'edx.ui.lms.sequence.previous_selected' , 'top' ) ;
188187 handlePrevious ( ) ;
189188 } }
190- { ...{
191- nextSequenceHandler,
192- handleNavigate,
193- } }
194189 />
195190 </ div >
196191 ) }
@@ -203,7 +198,6 @@ const Sequence = ({
203198 unitId = { unitId }
204199 unitLoadedHandler = { handleUnitLoaded }
205200 isOriginalUserStaff = { originalUserIsStaff }
206- isEnabledOutlineSidebar = { isEnabledOutlineSidebar }
207201 renderUnitNavigation = { renderUnitNavigation }
208202 />
209203 { unitHasLoaded && renderUnitNavigation ( false ) }
0 commit comments