From 519cf27c4e036995f0dd0860c5b8847dd39298fc Mon Sep 17 00:00:00 2001 From: Carla Duarte Date: Wed, 26 May 2021 12:01:18 -0400 Subject: [PATCH] AA-813: fix progress tab related links (#461) --- .../grades/detailed-grades/DetailedGrades.jsx | 11 ++++------- .../progress-tab/related-links/RelatedLinks.jsx | 11 ++++++++--- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/src/course-home/progress-tab/grades/detailed-grades/DetailedGrades.jsx b/src/course-home/progress-tab/grades/detailed-grades/DetailedGrades.jsx index 621ac48deb11..29eb6d801b54 100644 --- a/src/course-home/progress-tab/grades/detailed-grades/DetailedGrades.jsx +++ b/src/course-home/progress-tab/grades/detailed-grades/DetailedGrades.jsx @@ -1,8 +1,9 @@ import React from 'react'; import { useSelector } from 'react-redux'; -import { Link } from 'react-router-dom'; +import { getConfig } from '@edx/frontend-platform'; import { FormattedMessage, injectIntl, intlShape } from '@edx/frontend-platform/i18n'; +import { Hyperlink } from '@edx/paragon'; import { useModel } from '../../../../generic/model-store'; import DetailedGradesTable from './DetailedGradesTable'; @@ -21,13 +22,9 @@ function DetailedGrades({ intl }) { const hasSectionScores = sectionScores.length > 0; const outlineLink = ( - + {intl.formatMessage(messages.courseOutline)} - + ); return ( diff --git a/src/course-home/progress-tab/related-links/RelatedLinks.jsx b/src/course-home/progress-tab/related-links/RelatedLinks.jsx index 8f1a07a26967..2ac5d35aa140 100644 --- a/src/course-home/progress-tab/related-links/RelatedLinks.jsx +++ b/src/course-home/progress-tab/related-links/RelatedLinks.jsx @@ -1,7 +1,8 @@ import React from 'react'; import { useSelector } from 'react-redux'; -import { Link } from 'react-router-dom'; +import { getConfig } from '@edx/frontend-platform'; import { injectIntl, intlShape } from '@edx/frontend-platform/i18n'; +import { Hyperlink } from '@edx/paragon'; import messages from './messages'; @@ -15,11 +16,15 @@ function RelatedLinks({ intl }) {

{intl.formatMessage(messages.relatedLinks)}