import React, { PropTypes } from 'react'; import { domOnlyProps } from '../../../utils/reduxFormUtils'; 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, previousPath: PropTypes.string.isRequired }; export default LoginForm;