diff --git a/.eslintrc.js b/.eslintrc.js index 4cbd4e50..b47d9043 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -13,6 +13,7 @@ module.exports = createConfig('eslint', { rules: { 'react/function-component-definition': 'off', 'import/prefer-default-export': 'off', + 'import/no-extraneous-dependencies': 'off', }, overrides: [ { diff --git a/plugins/communications-app/CheckBoxForm/index.jsx b/plugins/communications-app/CheckBoxForm/index.jsx index 7c73a7ea..2ff8087c 100644 --- a/plugins/communications-app/CheckBoxForm/index.jsx +++ b/plugins/communications-app/CheckBoxForm/index.jsx @@ -9,9 +9,13 @@ const CheckBoxForm = ({ isChecked, handleChange, label }) => ( ); +CheckBoxForm.defaultProps = { + handleChange: () => {}, +}; + CheckBoxForm.propTypes = { isChecked: PropTypes.bool.isRequired, - handleChange: PropTypes.func.isRequired, + handleChange: PropTypes.func, label: PropTypes.string.isRequired, }; diff --git a/src/components/PluggableComponent/__snapshots__/index.test.jsx.snap b/src/components/PluggableComponent/__snapshots__/index.test.jsx.snap index e902e0b5..7fe3693e 100644 --- a/src/components/PluggableComponent/__snapshots__/index.test.jsx.snap +++ b/src/components/PluggableComponent/__snapshots__/index.test.jsx.snap @@ -3,22 +3,31 @@ exports[`PluggableComponent renders correctly 1`] = `
+ @openedx-plugins/communications-app-input-form +