{intl.formatMessage(messages.setWeeklyGoalDetail)}
@@ -57,8 +57,8 @@ function WeeklyLearningGoal({
srText={intl.formatMessage(messages.setLearningGoalButtonScreenReaderText)}
title={intl.formatMessage(messages.casualGoalButtonTitle)}
text={intl.formatMessage(messages.casualGoalButtonText)}
- isEnabled={LevelToDays.CASUAL === daysPerWeekGoal}
- handleSelect={() => { handleSelect(LevelToDays.CASUAL); }}
+ isEnabled={weeklyLearningGoalLevels.CASUAL === daysPerWeekGoal}
+ handleSelect={() => { handleSelect(weeklyLearningGoalLevels.CASUAL); }}
/>
@@ -67,8 +67,8 @@ function WeeklyLearningGoal({
srText={intl.formatMessage(messages.setLearningGoalButtonScreenReaderText)}
title={intl.formatMessage(messages.regularGoalButtonTitle)}
text={intl.formatMessage(messages.regularGoalButtonText)}
- isEnabled={LevelToDays.REGULAR === daysPerWeekGoal}
- handleSelect={() => { handleSelect(LevelToDays.REGULAR); }}
+ isEnabled={weeklyLearningGoalLevels.REGULAR === daysPerWeekGoal}
+ handleSelect={() => { handleSelect(weeklyLearningGoalLevels.REGULAR); }}
/>
@@ -77,8 +77,8 @@ function WeeklyLearningGoal({
srText={intl.formatMessage(messages.setLearningGoalButtonScreenReaderText)}
title={intl.formatMessage(messages.intenseGoalButtonTitle)}
text={intl.formatMessage(messages.intenseGoalButtonText)}
- isEnabled={LevelToDays.INTENSE === daysPerWeekGoal}
- handleSelect={() => { handleSelect(LevelToDays.INTENSE); }}
+ isEnabled={weeklyLearningGoalLevels.INTENSE === daysPerWeekGoal}
+ handleSelect={() => { handleSelect(weeklyLearningGoalLevels.INTENSE); }}
/>
@@ -111,15 +111,15 @@ function WeeklyLearningGoal({
);
}
-WeeklyLearningGoal.propTypes = {
+WeeklyLearningGoalCard.propTypes = {
daysPerWeek: PropTypes.number,
subscribedToReminders: PropTypes.bool,
courseId: PropTypes.string.isRequired,
intl: intlShape.isRequired,
};
-WeeklyLearningGoal.defaultProps = {
+WeeklyLearningGoalCard.defaultProps = {
daysPerWeek: null,
subscribedToReminders: false,
};
-export default injectIntl(WeeklyLearningGoal);
+export default injectIntl(WeeklyLearningGoalCard);