From 08ef4f77ad26b69a8c46edba21976478dd9c9d17 Mon Sep 17 00:00:00 2001 From: "kshitij.sobti" Date: Mon, 25 Nov 2024 16:22:22 +0530 Subject: [PATCH] fixup!: Add placement param to ProgressTabCertificateStatusSlot --- src/course-home/progress-tab/ProgressTab.jsx | 4 ++-- src/plugin-slots/ProgressTabCertificateStatusSlot/index.jsx | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/course-home/progress-tab/ProgressTab.jsx b/src/course-home/progress-tab/ProgressTab.jsx index 585b12b2c4..65376db874 100644 --- a/src/course-home/progress-tab/ProgressTab.jsx +++ b/src/course-home/progress-tab/ProgressTab.jsx @@ -34,14 +34,14 @@ const ProgressTab = () => { {/* Main body */}
{!disableProgressGraph && } - {!wideScreen && } + {!wideScreen && }
{/* Side panel */}
- {wideScreen && } + {wideScreen && }
diff --git a/src/plugin-slots/ProgressTabCertificateStatusSlot/index.jsx b/src/plugin-slots/ProgressTabCertificateStatusSlot/index.jsx index b59cda13b9..c4fc642c49 100644 --- a/src/plugin-slots/ProgressTabCertificateStatusSlot/index.jsx +++ b/src/plugin-slots/ProgressTabCertificateStatusSlot/index.jsx @@ -2,11 +2,12 @@ import PropTypes from 'prop-types'; import { PluginSlot } from '@openedx/frontend-plugin-framework'; import CertificateStatus from '../../course-home/progress-tab/certificate-status/CertificateStatus'; -const ProgressTabCertificateStatusSlot = ({ courseId }) => ( +const ProgressTabCertificateStatusSlot = ({ courseId, placement }) => ( @@ -15,6 +16,7 @@ const ProgressTabCertificateStatusSlot = ({ courseId }) => ( ProgressTabCertificateStatusSlot.propTypes = { courseId: PropTypes.string.isRequired, + placement: PropTypes.oneOf(['MAIN_BODY', 'SIDEBAR']), }; export default ProgressTabCertificateStatusSlot;