- {formatMessage(messages.error, { supportEmailLink })}
+ {supportEmail ? formatMessage(messages.error, { supportEmailLink }) : formatMessage(messages.errorNoEmail)}
)}
Grade required to pass the course: 0.8%
diff --git a/src/containers/CourseCard/components/CourseCardBanners/messages.js b/src/containers/CourseCard/components/CourseCardBanners/messages.js
index 7a9b8a82..525f4b24 100644
--- a/src/containers/CourseCard/components/CourseCardBanners/messages.js
+++ b/src/containers/CourseCard/components/CourseCardBanners/messages.js
@@ -31,11 +31,21 @@ export const messages = StrictDict({
description: 'Restricted certificate warning message',
defaultMessage: 'Your Certificate of Achievement is being held pending confirmation that the issuance of your Certificate is in compliance with strict U.S. embargoes on Iran, Cuba, Syria, and Sudan. If you think our system has mistakenly identified you as being connected with one of those countries, please let us know by contacting {supportEmail}.',
},
+ certRestrictedNoEmail: {
+ id: 'learner-dash.courseCard.banners.certificateRestrictedNoEmail',
+ description: 'Restricted certificate warning message',
+ defaultMessage: 'Your Certificate of Achievement is being held pending confirmation that the issuance of your Certificate is in compliance with strict U.S. embargoes on Iran, Cuba, Syria, and Sudan. If you think our system has mistakenly identified you as being connected with one of those countries, please let us know.',
+ },
certRefundContactBilling: {
id: 'learner-dash.courseCard.banners.certificateRefundContactBilling',
description: 'Message to learners to contact billing for certificate refunds',
defaultMessage: 'If you would like a refund on your Certificate of Achievement, please contact our billing address {billingEmail}',
},
+ certRefundContactBillingNoEmail: {
+ id: 'learner-dash.courseCard.banners.certificateRefundContactBillingNoEmail',
+ description: 'Message to learners to contact billing for certificate refunds',
+ defaultMessage: 'If you would like a refund on your Certificate of Achievement, please contact us.',
+ },
passingGrade: {
id: 'learner-dash.courseCard.banners.passingGrade',
description: 'Message to learners with minimum passing grade for the course',
diff --git a/src/containers/CourseFilterControls/CourseFilterControls.jsx b/src/containers/CourseFilterControls/CourseFilterControls.jsx
index c4a774a4..03b420d4 100644
--- a/src/containers/CourseFilterControls/CourseFilterControls.jsx
+++ b/src/containers/CourseFilterControls/CourseFilterControls.jsx
@@ -68,7 +68,7 @@ export const CourseFilterControls = ({
onClose={close}
>
- Refine
+ {formatMessage(messages.refine)}
diff --git a/src/containers/CourseFilterControls/messages.js b/src/containers/CourseFilterControls/messages.js
index fa368292..af895dca 100644
--- a/src/containers/CourseFilterControls/messages.js
+++ b/src/containers/CourseFilterControls/messages.js
@@ -1,6 +1,6 @@
-import { StrictDict } from 'utils';
+import { defineMessages } from '@edx/frontend-platform/i18n';
-export const messages = StrictDict({
+const messages = defineMessages({
inProgress: {
id: 'learner-dash.courseListFilters.inProgress',
description: 'in-progress filter checkbox label for course list filters',
@@ -52,4 +52,5 @@ export const messages = StrictDict({
defaultMessage: 'Refine',
},
});
+
export default messages;
diff --git a/src/containers/LearnerDashboardHeader/ExpandedHeader/AuthenticatedUserDropdown.jsx b/src/containers/LearnerDashboardHeader/ExpandedHeader/AuthenticatedUserDropdown.jsx
index e84cb468..eaa74486 100644
--- a/src/containers/LearnerDashboardHeader/ExpandedHeader/AuthenticatedUserDropdown.jsx
+++ b/src/containers/LearnerDashboardHeader/ExpandedHeader/AuthenticatedUserDropdown.jsx
@@ -29,9 +29,9 @@ export const AuthenticatedUserDropdown = () => {
- SWITCH DASHBOARD
+ {formatMessage(messages.dashboardSwitch)}
- Personal
+ {formatMessage(messages.dashboardPersonal)}
{!!dashboard && (
diff --git a/src/containers/LearnerDashboardHeader/messages.js b/src/containers/LearnerDashboardHeader/messages.js
index 8ac4e04a..08c71cd7 100644
--- a/src/containers/LearnerDashboardHeader/messages.js
+++ b/src/containers/LearnerDashboardHeader/messages.js
@@ -6,6 +6,16 @@ const messages = defineMessages({
defaultMessage: 'Dashboard',
description: 'The text for the user menu Dashboard navigation link.',
},
+ dashboardPersonal: {
+ id: 'learnerVariantDashboard.menu.dashboardPersonal.label',
+ defaultMessage: 'Personal',
+ description: 'Link to personal dashboard in user menu',
+ },
+ dashboardSwitch: {
+ id: 'learnerVariantDashboard.menu.dashboardSwitch.label',
+ defaultMessage: 'SWITCH DASHBOARD',
+ description: 'Switch Dashboard header in the user menu',
+ },
help: {
id: 'learnerVariantDashboard.help.label',
defaultMessage: 'Help',
diff --git a/src/widgets/RecommendationsPaintedDoorBtn/PaintedDoorExperimentContext.jsx b/src/widgets/RecommendationsPaintedDoorBtn/PaintedDoorExperimentContext.jsx
index 51e2c06d..a88e0f25 100644
--- a/src/widgets/RecommendationsPaintedDoorBtn/PaintedDoorExperimentContext.jsx
+++ b/src/widgets/RecommendationsPaintedDoorBtn/PaintedDoorExperimentContext.jsx
@@ -68,7 +68,13 @@ export const useIsEnterpriseUser = () => {
return enterpriseUser;
};
-export const PaintedDoorExperimentContext = React.createContext();
+export const PaintedDoorExperimentContext = React.createContext({
+ experimentVariation: null,
+ isPaintedDoorNavbarBtnVariation: null,
+ isPaintedDoorWidgetBtnVariation: null,
+ isPaintedDoorControlVariation: null,
+ experimentLoading: null,
+});
export const PaintedDoorExperimentProvider = ({ children }) => {
const [experimentData, setExperimentData] = module.state.experimentData({