Skip to content

Commit 4432323

Browse files
committed
fix errors from rebase, again
1 parent 116675f commit 4432323

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

client/modules/User/pages/AccountView.jsx

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import PropTypes from 'prop-types';
22
import React from 'react';
3-
import { connect } from 'react-redux';
3+
import { reduxForm } from 'redux-form';
44
import { bindActionCreators } from 'redux';
55
import { browserHistory } from 'react-router';
66
import { Tab, Tabs, TabList, TabPanel } from 'react-tabs';
77
import InlineSVG from 'react-inlinesvg';
8+
import axios from 'axios';
89
import { Helmet } from 'react-helmet';
910
import { updateSettings, initiateVerification, createApiKey, removeApiKey } from '../actions';
1011
import AccountForm from '../components/AccountForm';
@@ -113,4 +114,10 @@ AccountView.propTypes = {
113114
theme: PropTypes.string.isRequired
114115
};
115116

116-
export default connect(mapStateToProps, mapDispatchToProps)(AdvancedSettingsView);
117+
export default reduxForm({
118+
form: 'updateAllSettings',
119+
fields: ['username', 'email', 'currentPassword', 'newPassword'],
120+
validate: validateSettings,
121+
asyncValidate,
122+
asyncBlurFields: ['username', 'email', 'currentPassword']
123+
}, mapStateToProps, mapDispatchToProps)(AccountView);

0 commit comments

Comments
 (0)