Skip to content

Commit a10e0f0

Browse files
Vertmocatarak
authored andcommitted
You can now generate keys from the advanced settings interface
1 parent bfef3e9 commit a10e0f0

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

client/modules/User/pages/AccountView.jsx

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import PropTypes from 'prop-types';
22
import React from 'react';
3-
import { reduxForm } from 'redux-form';
3+
import { connect } from 'react-redux';
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';
98
import { Helmet } from 'react-helmet';
109
import { updateSettings, initiateVerification, createApiKey, removeApiKey } from '../actions';
1110
import AccountForm from '../components/AccountForm';
@@ -114,10 +113,4 @@ AccountView.propTypes = {
114113
theme: PropTypes.string.isRequired
115114
};
116115

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

Comments
 (0)