import React, { PropTypes } from 'react'; import { domOnlyProps } from '../../../utils/reduxFormUtils'; function NewPasswordForm(props) { const { fields: { password, confirmPassword }, handleSubmit, submitting, invalid, pristine } = 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, token: PropTypes.string.isRequired }; export default NewPasswordForm;