@@ -5,16 +5,16 @@ import {
55 Button , Hyperlink , Form , Stack , useToggle ,
66} from '@openedx/paragon' ;
77import { Link } from 'react-router-dom' ;
8+ import { type ReactNode } from 'react' ;
89
9- import { ReactNode } from 'react' ;
1010import { CourseOutlineStatusBar } from '@src/course-outline/data/types' ;
1111import { ContentTagsDrawerSheet } from '@src/content-tags-drawer' ;
1212import TagCount from '@src/generic/tag-count' ;
1313import { useHelpUrls } from '@src/help-urls/hooks' ;
14- import { useWaffleFlags } from '@src/data/apiHooks' ;
1514import { VIDEO_SHARING_OPTIONS } from '@src/course-outline/constants' ;
1615import { useContentTagsCount } from '@src/generic/data/apiHooks' ;
1716import { getVideoSharingOptionText } from '@src/course-outline/utils' ;
17+
1818import messages from './messages' ;
1919
2020interface StatusBarItemProps {
@@ -47,7 +47,6 @@ export const LegacyStatusBar = ({
4747 handleVideoSharingOptionChange,
4848} : LegacyStatusBarProps ) => {
4949 const intl = useIntl ( ) ;
50- const waffleFlags = useWaffleFlags ( courseId ) ;
5150
5251 const {
5352 courseReleaseDate,
@@ -67,7 +66,6 @@ export const LegacyStatusBar = ({
6766
6867 const courseReleaseDateObj = moment . utc ( courseReleaseDate , 'MMM DD, YYYY [at] HH:mm UTC' , true ) ;
6968 const checkListTitle = `${ completedCourseLaunchChecks + completedCourseBestPracticesChecks } /${ totalCourseLaunchChecks + totalCourseBestPracticesChecks } ` ;
70- const scheduleDestination = ( ) => new URL ( `settings/details/${ courseId } #schedule` , getConfig ( ) . STUDIO_BASE_URL ) . href ;
7169
7270 const {
7371 contentHighlights : contentHighlightsUrl ,
@@ -88,7 +86,7 @@ export const LegacyStatusBar = ({
8886 < StatusBarItem title = { intl . formatMessage ( messages . startDateTitle ) } >
8987 < Link
9088 className = "small"
91- to = { waffleFlags . useNewScheduleDetailsPage ? `/course/${ courseId } /settings/details/#schedule` : scheduleDestination ( ) }
89+ to = { `/course/${ courseId } /settings/details/#schedule` }
9290 >
9391 { courseReleaseDateObj . isValid ( ) ? (
9492 < FormattedDate
0 commit comments