Skip to content

Commit

Permalink
feat: introduce new prop for upgrade eligibility
Browse files Browse the repository at this point in the history
  • Loading branch information
alangsto committed Dec 9, 2024
1 parent c1ea57d commit 1b94645
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/widgets/Xpert.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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;

0 comments on commit 1b94645

Please sign in to comment.