import PropTypes from 'prop-types'; import React from 'react'; import { withTranslation } from 'react-i18next'; import i18n from 'i18next'; import Button from '../../../common/Button'; 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, // eslint-disable-line password: PropTypes.object.isRequired, // eslint-disable-line }).isRequired, handleSubmit: PropTypes.func.isRequired, validateAndLoginUser: PropTypes.func.isRequired, submitting: PropTypes.bool, pristine: PropTypes.bool, invalid: PropTypes.bool, previousPath: PropTypes.string.isRequired, t: PropTypes.func.isRequired }; LoginForm.defaultProps = { submitting: false, pristine: true, invalid: false, }; export default withTranslation()(LoginForm);