From c40ee8d814e0f46abd2ef47f2aa0150ac15639e7 Mon Sep 17 00:00:00 2001 From: Alison Langston <46360176+alangsto@users.noreply.github.com> Date: Mon, 9 Dec 2024 16:06:21 -0500 Subject: [PATCH] feat: introduce new prop for upgrade eligibility (#71) --- 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;