diff --git a/src/courseware/course/CourseBreadcrumb.jsx b/src/courseware/course/CourseBreadcrumb.jsx index a758594d..788c08d3 100644 --- a/src/courseware/course/CourseBreadcrumb.jsx +++ b/src/courseware/course/CourseBreadcrumb.jsx @@ -9,11 +9,11 @@ export default function CourseBreadcrumb({ url, label, last }) {
{intl.formatMessage(messages['learn.contentLock.complete.prerequisite'], { - prereqSectionName, - })} +
+ {intl.formatMessage(messages['learn.contentLock.complete.prerequisite'], { + prereqSectionName, + })}
@@ -33,5 +36,9 @@ function ContentLock({ } ContentLock.propTypes = { intl: intlShape.isRequired, + courseUsageKey: PropTypes.string.isRequired, + prereqSectionName: PropTypes.string.isRequired, + prereqId: PropTypes.string.isRequired, + sectionName: PropTypes.string.isRequired, }; export default injectIntl(ContentLock); diff --git a/src/index.jsx b/src/index.jsx index 20a662ae..6591da1d 100755 --- a/src/index.jsx +++ b/src/index.jsx @@ -1,7 +1,9 @@ import 'core-js/stable'; import 'regenerator-runtime/runtime'; -import { APP_INIT_ERROR, APP_READY, subscribe, initialize } from '@edx/frontend-platform'; +import { + APP_INIT_ERROR, APP_READY, subscribe, initialize, +} from '@edx/frontend-platform'; import { AppProvider, ErrorPage } from '@edx/frontend-platform/react'; import React from 'react'; import ReactDOM from 'react-dom'; diff --git a/src/user-messages/Alert.jsx b/src/user-messages/Alert.jsx index dda6f992..9fb2281b 100644 --- a/src/user-messages/Alert.jsx +++ b/src/user-messages/Alert.jsx @@ -1,16 +1,20 @@ import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; -import { faExclamationTriangle, faInfoCircle, faCheckCircle, faMinusCircle, faTimes } from '@fortawesome/free-solid-svg-icons'; +import { + faExclamationTriangle, faInfoCircle, faCheckCircle, faMinusCircle, faTimes, +} from '@fortawesome/free-solid-svg-icons'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { Button } from '@edx/paragon'; function getAlertClass(type) { if (type === 'error') { return 'alert-warning'; - } else if (type === 'danger') { + } + if (type === 'danger') { return 'alert-danger'; - } else if (type === 'success') { + } + if (type === 'success') { return 'alert-success'; } return 'alert-info'; @@ -19,9 +23,11 @@ function getAlertClass(type) { function getAlertIcon(type) { if (type === 'error') { return faExclamationTriangle; - } else if (type === 'danger') { + } + if (type === 'danger') { return faMinusCircle; - } else if (type === 'success') { + } + if (type === 'success') { return faCheckCircle; } return faInfoCircle;