From 1b94645ac96ab3d8343ee9049e43b78ccae93f9b Mon Sep 17 00:00:00 2001 From: Alie Langston Date: Mon, 9 Dec 2024 13:05:05 -0500 Subject: [PATCH] feat: introduce new prop for upgrade eligibility --- src/widgets/Xpert.jsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/widgets/Xpert.jsx b/src/widgets/Xpert.jsx index 75591e7f..a8a6148a 100644 --- a/src/widgets/Xpert.jsx +++ b/src/widgets/Xpert.jsx @@ -7,7 +7,12 @@ import ToggleXpert from '../components/ToggleXpertButton'; import Sidebar from '../components/Sidebar'; import { ExperimentsProvider } from '../experiments'; -const Xpert = ({ courseId, contentToolsEnabled, unitId }) => { +const Xpert = ({ + courseId, + contentToolsEnabled, + unitId, + isUpgradeEligible, // eslint-disable-line no-unused-vars +}) => { const dispatch = useDispatch(); const { @@ -58,6 +63,7 @@ Xpert.propTypes = { courseId: PropTypes.string.isRequired, contentToolsEnabled: PropTypes.bool.isRequired, unitId: PropTypes.string.isRequired, + isUpgradeEligible: PropTypes.bool.isRequired, }; export default Xpert;