From af5f65e9aa2998b0fd45998d9de93d0e51b1dd17 Mon Sep 17 00:00:00 2001 From: "Adolfo R. Brandes" Date: Fri, 6 Dec 2024 14:59:52 -0300 Subject: [PATCH] feat: remove upgrade button This removes the upgrade button as default content in CourseCardActionSlot. This is, for the moment, a Sumac-specific change. The button is still present in master, pending proper removal (including the component definitions from the rest of the repository) prior to the U release by the maintainers. See: https://github.com/openedx/frontend-app-learner-dashboard/issues/438 --- .../CourseCardActionSlot/index.jsx | 29 +++++-------------- 1 file changed, 8 insertions(+), 21 deletions(-) diff --git a/src/plugin-slots/CourseCardActionSlot/index.jsx b/src/plugin-slots/CourseCardActionSlot/index.jsx index 6747ee18..7a95b675 100644 --- a/src/plugin-slots/CourseCardActionSlot/index.jsx +++ b/src/plugin-slots/CourseCardActionSlot/index.jsx @@ -2,27 +2,14 @@ import React from 'react'; import PropTypes from 'prop-types'; import { PluginSlot } from '@openedx/frontend-plugin-framework'; -import { reduxHooks } from 'hooks'; -import UpgradeButton from 'containers/CourseCard/components/CourseCardActions/UpgradeButton'; - -const CourseCardActionSlot = ({ cardId }) => { - const { isEntitlement } = reduxHooks.useCardEntitlementData(cardId); - const { - isVerified, - isExecEd2UCourse, - } = reduxHooks.useCardEnrollmentData(cardId); - - return ( - - {!(isEntitlement || isVerified || isExecEd2UCourse) && } - - ); -}; +const CourseCardActionSlot = ({ cardId }) => ( + +); CourseCardActionSlot.propTypes = { cardId: PropTypes.string.isRequired,