@@ -5,24 +5,18 @@ import { ActionRow, Button, Icon } from '@openedx/paragon';
55import { CheckCircle , RadioButtonUnchecked } from '@openedx/paragon/icons' ;
66import { getConfig } from '@edx/frontend-platform' ;
77
8- import { useWaffleFlags } from '@src/data/apiHooks' ;
9-
108import messages from './messages' ;
119
12- const getUpdateLinks = ( courseId , waffleFlags ) => {
10+ const getUpdateLinks = ( courseId ) => {
1311 const baseUrl = getConfig ( ) . STUDIO_BASE_URL ;
14- const isLegacyCertificateUrl = ! waffleFlags . useNewCertificatesPage ;
15- const isLegacyOutlineUrl = ! waffleFlags . useNewCourseOutlinePage ;
1612
1713 return {
1814 welcomeMessage : `/course/${ courseId } /course_info` ,
1915 gradingPolicy : `/course/${ courseId } /settings/grading` ,
20- certificate : isLegacyCertificateUrl
21- ? `${ baseUrl } /certificates/${ courseId } ` :
22- `/course/${ courseId } /certificates` ,
16+ certificate : `/course/${ courseId } /certificates` ,
2317 courseDates : `/course/${ courseId } /settings/details/#schedule` ,
2418 proctoringEmail : `${ baseUrl } /pages-and-resources/proctoring/settings` ,
25- outline : isLegacyOutlineUrl ? ` ${ baseUrl } /course/ ${ courseId } ` : `/course/${ courseId } ` ,
19+ outline : `/course/${ courseId } ` ,
2620 } ;
2721} ;
2822
@@ -32,8 +26,7 @@ const ChecklistItemBody = ({
3226 isCompleted,
3327} ) => {
3428 const intl = useIntl ( ) ;
35- const waffleFlags = useWaffleFlags ( courseId ) ;
36- const updateLinks = getUpdateLinks ( courseId , waffleFlags ) ;
29+ const updateLinks = getUpdateLinks ( courseId ) ;
3730
3831 return (
3932 < ActionRow >
0 commit comments