|
1 | 1 | import PropTypes from 'prop-types';
|
2 | 2 | import React from 'react';
|
3 |
| -import { reduxForm } from 'redux-form'; |
| 3 | +import { connect } from 'react-redux'; |
4 | 4 | import { bindActionCreators } from 'redux';
|
5 | 5 | import { browserHistory } from 'react-router';
|
6 | 6 | import { Tab, Tabs, TabList, TabPanel } from 'react-tabs';
|
7 | 7 | import InlineSVG from 'react-inlinesvg';
|
8 |
| -import axios from 'axios'; |
9 | 8 | import { Helmet } from 'react-helmet';
|
10 | 9 | import { updateSettings, initiateVerification, createApiKey, removeApiKey } from '../actions';
|
11 | 10 | import AccountForm from '../components/AccountForm';
|
@@ -114,10 +113,4 @@ AccountView.propTypes = {
|
114 | 113 | theme: PropTypes.string.isRequired
|
115 | 114 | };
|
116 | 115 |
|
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); |
| 116 | +export default connect(mapStateToProps, mapDispatchToProps)(AdvancedSettingsView); |
0 commit comments