@@ -31,7 +31,8 @@ import UpgradeFootnote from './UpgradeFootnote';
3131import SocialIcons from '../../social-share/SocialIcons' ;
3232import { logClick , logVisit } from './utils' ;
3333import { DashboardLink , IdVerificationSupportLink , ProfileLink } from '../../../shared/links' ;
34- import { CourseRecommendationsSlot , DashboardFootnotePluginSlot } from '../../../plugin-slots/CourseExitPluginSlots' ;
34+ import DashboardFootnote from './DashboardFootnote' ;
35+ import { CourseRecommendationsSlot } from '../../../plugin-slots/CourseExitPluginSlots' ;
3536
3637const LINKEDIN_BLUE = '#2867B2' ;
3738
@@ -53,11 +54,20 @@ const CourseCelebration = ({ intl }) => {
5354
5455 const {
5556 org,
56- verifiedMode,
57+ // verifiedMode,
5758 canViewCertificate,
5859 userTimezone,
5960 } = useModel ( 'courseHomeMeta' , courseId ) ;
6061
62+ const verifiedMode = {
63+ accessExpirationDate : null ,
64+ currency : 'USD' ,
65+ currencySymbol : '$' ,
66+ price : 99 ,
67+ sku : '765F6C2' ,
68+ upgradeUrl : 'https://commerce-coordinator.edx.org/lms/payment_page_redirect/?sku=765F6C2&course_run_key=course-v1%3AIBM%2BPY0101EN%2B2T2023' ,
69+ } ;
70+
6171 const {
6272 certStatus,
6373 certWebViewUrl,
@@ -83,7 +93,7 @@ const CourseCelebration = ({ intl }) => {
8393 let certHeader ;
8494 let visitEvent = 'celebration_generic' ;
8595 // These cases are taken from the edx-platform `get_cert_data` function found in lms/courseware/views/views.py
86- switch ( certStatus ) {
96+ switch ( 'audit_passing' ) {
8797 case 'downloadable' :
8898 certHeader = intl . formatMessage ( messages . certificateHeaderDownloadable ) ;
8999 message = (
@@ -118,7 +128,7 @@ const CourseCelebration = ({ intl }) => {
118128 }
119129 buttonEvent = 'view_cert' ;
120130 visitEvent = 'celebration_with_cert' ;
121- footnote = < DashboardFootnotePluginSlot variant = { visitEvent } /> ;
131+ footnote = < DashboardFootnote variant = { visitEvent } /> ;
122132 break ;
123133 case 'earned_but_not_available' : {
124134 const endDate = < FormattedDate value = { end } day = "numeric" month = "long" year = "numeric" /> ;
@@ -141,7 +151,7 @@ const CourseCelebration = ({ intl }) => {
141151 </ >
142152 ) ;
143153 visitEvent = 'celebration_with_unavailable_cert' ;
144- footnote = < DashboardFootnotePluginSlot variant = { visitEvent } /> ;
154+ footnote = < DashboardFootnote variant = { visitEvent } /> ;
145155 break ;
146156 }
147157 case 'requesting' :
@@ -162,12 +172,12 @@ const CourseCelebration = ({ intl }) => {
162172 certHeader = intl . formatMessage ( messages . certificateHeaderRequestable ) ;
163173 message = ( < p > { intl . formatMessage ( messages . requestCertificateBodyText ) } </ p > ) ;
164174 visitEvent = 'celebration_with_requestable_cert' ;
165- footnote = < DashboardFootnotePluginSlot variant = { visitEvent } /> ;
175+ footnote = < DashboardFootnote variant = { visitEvent } /> ;
166176 break ;
167177 case 'unverified' :
168178 certHeader = intl . formatMessage ( messages . certificateHeaderUnverified ) ;
169179 visitEvent = 'celebration_unverified' ;
170- footnote = < DashboardFootnotePluginSlot variant = { visitEvent } /> ;
180+ footnote = < DashboardFootnote variant = { visitEvent } /> ;
171181 if ( verificationStatus === 'pending' ) {
172182 message = ( < p > { intl . formatMessage ( messages . verificationPending ) } </ p > ) ;
173183 } else {
@@ -239,7 +249,7 @@ const CourseCelebration = ({ intl }) => {
239249 if ( verifiedMode . accessExpirationDate ) {
240250 footnote = < UpgradeFootnote deadline = { verifiedMode . accessExpirationDate } href = { verifiedMode . upgradeUrl } /> ;
241251 } else {
242- footnote = < DashboardFootnotePluginSlot variant = { visitEvent } /> ;
252+ footnote = < DashboardFootnote variant = { visitEvent } /> ;
243253 }
244254 } else {
245255 visitEvent = 'celebration_audit_no_upgrade' ;
0 commit comments