From 0ebc168f2167ba7c9bb6ece09ac9c8e936cf9047 Mon Sep 17 00:00:00 2001 From: Ben Wheeler Date: Mon, 26 Aug 2019 15:35:17 -0400 Subject: [PATCH] comment prop for eslint # Conflicts: # src/components/registration/scratch3-registration.jsx --- src/components/registration/scratch3-registration.jsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/components/registration/scratch3-registration.jsx b/src/components/registration/scratch3-registration.jsx index c345c168e..220c01433 100644 --- a/src/components/registration/scratch3-registration.jsx +++ b/src/components/registration/scratch3-registration.jsx @@ -23,16 +23,13 @@ const Registration = ({ ); 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, handleCompleteRegistration: PropTypes.func, isOpen: PropTypes.bool }; -Registration.defaultProps = { - createProjectOnComplete: false -}; - const mapDispatchToProps = (dispatch, ownProps) => ({ handleCloseRegistration: () => { dispatch(navigationActions.setRegistrationOpen(false));