diff --git a/src/plugin-slots/CourseCardActionSlot/README.md b/src/plugin-slots/CourseCardActionSlot/README.md index bbf0d5c..3447063 100644 --- a/src/plugin-slots/CourseCardActionSlot/README.md +++ b/src/plugin-slots/CourseCardActionSlot/README.md @@ -16,6 +16,7 @@ The following `env.config.jsx` will render the `cardId` of the course as `
` e ```js import { DIRECT_PLUGIN, PLUGIN_OPERATIONS } from '@openedx/frontend-plugin-framework'; +import ActionButton from 'containers/CourseCard/components/CourseCardActions/ActionButton'; const config = { pluginSlots: { @@ -23,22 +24,41 @@ const config = { keepDefault: false, plugins: [ { - // Insert custom content after course card buttons + // Insert Custom Button in Course Card op: PLUGIN_OPERATIONS.Insert, widget: { id: 'custom_course_card_action', + priority: 60, type: DIRECT_PLUGIN, RenderWidget: ({cardId}) => ( -
📚: {cardId}
-