Skip to content

Commit

Permalink
feat: replace text in Progress Tab
Browse files Browse the repository at this point in the history
  • Loading branch information
viadanna committed Apr 4, 2024
1 parent 37da1c0 commit e540d8b
Showing 1 changed file with 16 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
FormattedDate, FormattedMessage, injectIntl, intlShape,
} from '@edx/frontend-platform/i18n';

import { Button, Card } from '@edx/paragon';
import { Button, Card, Hyperlink } from '@edx/paragon';
import { getConfig } from '@edx/frontend-platform';
import { useModel } from '../../../generic/model-store';
import { COURSE_EXIT_MODES, getCourseExitMode } from '../../../courseware/course/course-exit/utils';
Expand Down Expand Up @@ -85,6 +85,19 @@ const CertificateStatus = ({ intl }) => {
const dashboardLink = <DashboardLink />;

Check failure on line 85 in src/course-home/progress-tab/certificate-status/CertificateStatus.jsx

View workflow job for this annotation

GitHub Actions / tests

'dashboardLink' is assigned a value but never used
const idVerificationSupportLink = <IdVerificationSupportLink />;
const profileLink = <ProfileLink />;

Check failure on line 87 in src/course-home/progress-tab/certificate-status/CertificateStatus.jsx

View workflow job for this annotation

GitHub Actions / tests

'profileLink' is assigned a value but never used
const certificatesHelpLink = (
<Hyperlink
variant="muted"
isInline
destination="https://eshemoeasu.my.site.com/help/s/article/Learn-about-printing-saving-or-sharing-your-certificate"
>
<FormattedMessage
id="progress.certificateStatus.certificatesHelpLink"
defaultMessage="Learn about printing, saving, or sharing your certificate."
description="Redirects learners to Certificate Help docs"
/>
</Hyperlink>
);

// Some learners have a valid ("downloadable") certificate without being in a passing
// state (e.g. learners who have been added to a course's allowlist), so we need to
Expand Down Expand Up @@ -133,12 +146,9 @@ const CertificateStatus = ({ intl }) => {
body = (
<FormattedMessage
id="progress.certificateStatus.downloadableBody"
defaultMessage="
Showcase your accomplishment on LinkedIn or your resumé today.
You can download your certificate now and access it any time from your
{dashboardLink} and {profileLink}."
defaultMessage="Showcase your accomplishment. {certificatesHelpLink}"
description="Recommending an action for learner when course certificate is available"
values={{ dashboardLink, profileLink }}
values={{ certificatesHelpLink }}
/>
);
if (certWebViewUrl) {
Expand Down

0 comments on commit e540d8b

Please sign in to comment.