diff --git a/src/CourseAuthoringPage.jsx b/src/CourseAuthoringPage.jsx
index adf8ca190..8c524c0be 100644
--- a/src/CourseAuthoringPage.jsx
+++ b/src/CourseAuthoringPage.jsx
@@ -14,20 +14,34 @@ import { getCourseAppsApiStatus, getLoadingStatus } from './pages-and-resources/
import { RequestStatus } from './data/constants';
import Loading from './generic/Loading';
-const AppHeader = (courseNumber, courseOrg, courseTitle, courseId) => (
+const AppHeader = ({
+ courseNumber, courseOrg, courseTitle, courseId,
+}) => (
- );
+);
- const AppFooter = () => (
-
-
-
- );
+AppHeader.propTypes = {
+ courseId: PropTypes.string.isRequired,
+ courseNumber: PropTypes.string,
+ courseOrg: PropTypes.string,
+ courseTitle: PropTypes.string.isRequired,
+};
+
+AppHeader.defaultProps = {
+ courseNumber: null,
+ courseOrg: null,
+};
+
+const AppFooter = () => (
+
+
+
+);
const CourseAuthoringPage = ({ courseId, children }) => {
const dispatch = useDispatch();
@@ -57,7 +71,14 @@ const CourseAuthoringPage = ({ courseId, children }) => {
we shouldn't have the header and footer on these pages.
This functionality will be removed in TNL-9591 */}
{inProgress ? !pathname.includes('/editor/') &&
- : }
+ : (
+
+ )}
{children}
{!inProgress && }