Skip to content

Commit

Permalink
fix: [RGOeX-26199] FIxed lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
Inferato committed Nov 9, 2023
1 parent ab16c21 commit 9cb6fa8
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,12 @@ BulkEmailForm.propTypes = {
courseId: PropTypes.string.isRequired,
cohorts: PropTypes.arrayOf(PropTypes.string),
intl: intlShape.isRequired,
courseModes: PropTypes.arrayOf(PropTypes.string).isRequired,
courseModes: PropTypes.arrayOf(
PropTypes.shape({
slug: PropTypes.string.isRequired,
name: PropTypes.string.isRequired,
}),
).isRequired,
};

export default injectIntl(BulkEmailForm);
Original file line number Diff line number Diff line change
Expand Up @@ -126,5 +126,10 @@ BulkEmailRecipient.propTypes = {
handleCheckboxes: PropTypes.func.isRequired,
isValid: PropTypes.bool,
additionalCohorts: PropTypes.arrayOf(PropTypes.string),
courseModes: PropTypes.arrayOf(PropTypes.object).isRequired,
courseModes: PropTypes.arrayOf(
PropTypes.shape({
slug: PropTypes.string.isRequired,
name: PropTypes.string.isRequired,
}),
).isRequired,
};
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Factory } from 'rosie';
import { Factory } from 'rosie'; // eslint-disable-line import/no-extraneous-dependencies

const courseModeFactory = () => {
const AuditModeFactory = Factory.define('AuditModeFactory')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function renderBulkEmailForm() {
function renderBulkEmailFormContext(value) {
return (
<BulkEmailContext.Provider value={[value, dispatchMock]}>
<BulkEmailForm courseId="test" courseMode={courseMode}/>
<BulkEmailForm courseId="test" courseMode={courseMode} />
</BulkEmailContext.Provider>
);
}
Expand Down

0 comments on commit 9cb6fa8

Please sign in to comment.