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