import React, { PropTypes } from 'react'; function SignupForm(props) { const { fields: { username, email, password, confirmPassword }, handleSubmit, submitting, invalid, pristine } = props; return (
); } SignupForm.propTypes = { fields: PropTypes.shape({ username: PropTypes.string.isRequired, email: PropTypes.string.isRequired, password: PropTypes.string.isRequired, confirmPassword: PropTypes.string.isRequired }).isRequired, handleSubmit: PropTypes.func.isRequired, signUpUser: PropTypes.func.isRequired, submitting: PropTypes.bool, invalid: PropTypes.bool, pristine: PropTypes.bool }; export default SignupForm;