Skip to content

Commit

Permalink
refactor: courseListDataShape for slot
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxFrank13 committed Oct 9, 2024
1 parent 3964980 commit c6af1a5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/plugin-slots/CourseListSlot/index.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';

import { PluginSlot } from '@openedx/frontend-plugin-framework';
import { CourseList } from 'containers/CoursesPanel/CourseList';
import { CourseList, courseListDataShape } from 'containers/CoursesPanel/CourseList';

export const CourseListSlot = ({ courseListData }) => (
<PluginSlot id="course_list_slot" pluginProps={{ courseListData }}>
Expand All @@ -11,7 +10,7 @@ export const CourseListSlot = ({ courseListData }) => (
);

CourseListSlot.propTypes = {
courseListData: PropTypes.shape().isRequired,
courseListData: courseListDataShape,
};

export default CourseListSlot;

0 comments on commit c6af1a5

Please sign in to comment.