import PropTypes from 'prop-types'; import React 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, pristine: PropTypes.bool, invalid: PropTypes.bool, previousPath: PropTypes.string.isRequired }; LoginForm.defaultProps = { submitting: false, pristine: true, invalid: false }; export default LoginForm;