Skip to content

Commit

Permalink
refactor: prop-types for CourstList
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxFrank13 committed Oct 2, 2024
1 parent 9d4361a commit d90737f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/containers/CoursesPanel/CourseList/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,8 @@ export const CourseList = ({ courseListData }) => {

export const courseListDataShape = PropTypes.shape({
showFilters: PropTypes.bool.isRequired,
// eslint-disable-next-line react/forbid-prop-types
visibleList: PropTypes.arrayOf(PropTypes.object).isRequired,
// eslint-disable-next-line react/forbid-prop-types
filterOptions: PropTypes.object.isRequired,
visibleList: PropTypes.arrayOf(PropTypes.shape()).isRequired,
filterOptions: PropTypes.shape().isRequired,
numPages: PropTypes.number.isRequired,
setPageNumber: PropTypes.func.isRequired,
});
Expand Down
2 changes: 1 addition & 1 deletion src/containers/CoursesPanel/CourseList/index.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@ describe('CourseList', () => {
expect(wrapper.snapshot).toMatchSnapshot();
});
});
});
});

0 comments on commit d90737f

Please sign in to comment.