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 16257d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/widgets/Xpert.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ 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 }) => {

Check failure on line 10 in src/widgets/Xpert.jsx

View workflow job for this annotation

GitHub Actions / test

Expected a line break after this opening brace

Check failure on line 10 in src/widgets/Xpert.jsx

View workflow job for this annotation

GitHub Actions / test

'isUpgradeEligible' is defined but never used

Check failure on line 10 in src/widgets/Xpert.jsx

View workflow job for this annotation

GitHub Actions / test

Expected a line break before this closing brace
const dispatch = useDispatch();

const {
Expand Down Expand Up @@ -58,6 +58,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 16257d0

Please sign in to comment.