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}

-
+ + Custom Button + ), }, }, + { + // Insert Another Button in Course Card + op: PLUGIN_OPERATIONS.Insert, + widget: { + id: 'another_custom_course_card_action', + priority: 70, + type: DIRECT_PLUGIN, + RenderWidget: ({cardId}) => ( + + 📚: {cardId} + + ), + }, + }, ] } }, } export default config; -``` \ No newline at end of file +``` diff --git a/src/plugin-slots/CourseCardActionSlot/images/post_course_card_action.png b/src/plugin-slots/CourseCardActionSlot/images/post_course_card_action.png index e81138a..e21a008 100644 Binary files a/src/plugin-slots/CourseCardActionSlot/images/post_course_card_action.png and b/src/plugin-slots/CourseCardActionSlot/images/post_course_card_action.png differ