comment prop for eslint

# Conflicts:
#	src/components/registration/scratch3-registration.jsx
This commit is contained in:
Ben Wheeler 2019-08-26 15:35:17 -04:00
parent 110ce59cc7
commit 0ebc168f21

View file

@ -23,16 +23,13 @@ const Registration = ({
); );
Registration.propTypes = { Registration.propTypes = {
createProjectOnComplete: PropTypes.bool, // used in mapDispatchToProps; eslint doesn't understand that this prop is used
createProjectOnComplete: PropTypes.bool, // eslint-disable-line react/no-unused-prop-types
handleCloseRegistration: PropTypes.func, handleCloseRegistration: PropTypes.func,
handleCompleteRegistration: PropTypes.func, handleCompleteRegistration: PropTypes.func,
isOpen: PropTypes.bool isOpen: PropTypes.bool
}; };
Registration.defaultProps = {
createProjectOnComplete: false
};
const mapDispatchToProps = (dispatch, ownProps) => ({ const mapDispatchToProps = (dispatch, ownProps) => ({
handleCloseRegistration: () => { handleCloseRegistration: () => {
dispatch(navigationActions.setRegistrationOpen(false)); dispatch(navigationActions.setRegistrationOpen(false));