mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-27 01:25:52 -05:00
comment prop for eslint
# Conflicts: # src/components/registration/scratch3-registration.jsx
This commit is contained in:
parent
110ce59cc7
commit
0ebc168f21
1 changed files with 2 additions and 5 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue