import PropTypes from 'prop-types'; import React from 'react'; import { withTranslation } from 'react-i18next'; import { domOnlyProps } from '../../../utils/reduxFormUtils'; import Button from '../../../common/Button'; function NewPasswordForm(props) { const { fields: { password, confirmPassword }, handleSubmit, submitting, invalid, pristine, t } = props; return (
); } NewPasswordForm.propTypes = { fields: PropTypes.shape({ password: PropTypes.object.isRequired, confirmPassword: PropTypes.object.isRequired }).isRequired, handleSubmit: PropTypes.func.isRequired, updatePassword: PropTypes.func.isRequired, submitting: PropTypes.bool, invalid: PropTypes.bool, pristine: PropTypes.bool, params: PropTypes.shape({ reset_password_token: PropTypes.string, }).isRequired, t: PropTypes.func.isRequired }; NewPasswordForm.defaultProps = { invalid: false, pristine: true, submitting: false }; export default withTranslation()(NewPasswordForm);