import React, { PropTypes } from 'react'; import { domOnlyProps } from '../../../utils/reduxFormUtils'; function AccountForm(props) { const { fields: { username, email, currentPassword, newPassword }, handleSubmit, submitting, invalid, pristine } = props; return (
); } AccountForm.propTypes = { fields: PropTypes.shape({ username: PropTypes.object.isRequired, email: PropTypes.object.isRequired, currentPassword: PropTypes.object.isRequired, newPassword: PropTypes.object.isRequired }).isRequired, handleSubmit: PropTypes.func.isRequired, updateSettings: PropTypes.func.isRequired, submitting: PropTypes.bool, invalid: PropTypes.bool, pristine: PropTypes.bool, }; AccountForm.defaultProps = { submitting: false, pristine: true, invalid: false }; export default AccountForm;