{checkListTitle} {intl.formatMessage(messages.checklistCompleted)}
diff --git a/src/course-outline/status-bar/StatusBar.test.jsx b/src/course-outline/status-bar/StatusBar.test.jsx
index 64cd617a5..9745a5c49 100644
--- a/src/course-outline/status-bar/StatusBar.test.jsx
+++ b/src/course-outline/status-bar/StatusBar.test.jsx
@@ -21,6 +21,12 @@ jest.mock('react-router-dom', () => ({
}),
}));
+jest.mock('../../help-urls/hooks', () => ({
+ useHelpUrls: () => ({
+ contentHighlights: 'some',
+ }),
+}));
+
const statusBarData = {
courseReleaseDate: 'Feb 05, 2013 at 05:00 UTC',
isSelfPaced: true,
diff --git a/src/course-outline/utils.jsx b/src/course-outline/utils.jsx
index 0ff718a0c..8428a0ee1 100644
--- a/src/course-outline/utils.jsx
+++ b/src/course-outline/utils.jsx
@@ -13,7 +13,7 @@ import { SECTION_BADGE_STATUTES, STAFF_ONLY } from './constants';
* @param {bool} visibleToStaffOnly - value from section info
* @param {string} visibilityState - value from section info
* @param {bool} staffOnlyMessage - value from section info
- * @returns {typeof SECTION_BADGE_STATUTES}
+ * @returns {SECTION_BADGE_STATUTES[keyof SECTION_BADGE_STATUTES]}
*/
const getSectionStatus = ({
published,
@@ -58,7 +58,7 @@ const getSectionStatusBadgeContent = (status, messages, intl) => {
};
case SECTION_BADGE_STATUTES.staffOnly:
return {
- badgeTitle: intl.formatMessage(messages.statusBadgeStuffOnly),
+ badgeTitle: intl.formatMessage(messages.statusBadgeStaffOnly),
badgeIcon: LockIcon,
};
case SECTION_BADGE_STATUTES.draft:
diff --git a/src/generic/course-upload-image/index.jsx b/src/generic/course-upload-image/index.jsx
index a8dfa2c98..3e1742e26 100644
--- a/src/generic/course-upload-image/index.jsx
+++ b/src/generic/course-upload-image/index.jsx
@@ -31,8 +31,8 @@ const CourseUploadImage = ({
}) => {
const { courseId } = useParams();
const intl = useIntl();
- const imageAbsolutePath = new URL(assetImagePath, getConfig().LMS_BASE_URL);
- const assetsUrl = new URL(`/assets/${courseId}`, getConfig().STUDIO_BASE_URL);
+ const imageAbsolutePath = () => new URL(assetImagePath, getConfig().LMS_BASE_URL);
+ const assetsUrl = () => new URL(`/assets/${courseId}`, getConfig().STUDIO_BASE_URL);
const handleChangeImageAsset = (path) => {
const assetPath = _.last(path.split('/'));
@@ -59,7 +59,7 @@ const CourseUploadImage = ({
const inputComponent = assetImagePath ? (
@@ -88,7 +88,7 @@ const CourseUploadImage = ({
values={{
hyperlink: (
diff --git a/src/generic/processing-notification/data/slice.js b/src/generic/processing-notification/data/slice.js
index 4090524a9..03e4e243f 100644
--- a/src/generic/processing-notification/data/slice.js
+++ b/src/generic/processing-notification/data/slice.js
@@ -1,9 +1,11 @@
/* eslint-disable no-param-reassign */
import { createSlice } from '@reduxjs/toolkit';
+import { NOTIFICATION_MESSAGES } from '../../../constants';
+
const initialState = {
isShow: false,
- title: '',
+ title: NOTIFICATION_MESSAGES.empty,
};
const slice = createSlice({
diff --git a/src/studio-home/card-item/index.jsx b/src/studio-home/card-item/index.jsx
index 53b45aff7..c87b02f0f 100644
--- a/src/studio-home/card-item/index.jsx
+++ b/src/studio-home/card-item/index.jsx
@@ -17,7 +17,7 @@ const CardItem = ({
courseCreatorStatus,
rerunCreatorStatus,
} = useSelector(getStudioHomeData);
- const courseUrl = new URL(url, getConfig().STUDIO_BASE_URL);
+ const courseUrl = () => new URL(url, getConfig().STUDIO_BASE_URL);
const subtitle = isLibraries ? `${org} / ${number}` : `${org} / ${number} / ${run}`;
const readOnlyItem = !(lmsLink || rerunLink || url);
const showActions = !(readOnlyItem || isLibraries);
@@ -32,7 +32,7 @@ const CardItem = ({
title={!readOnlyItem ? (
{displayName}