Ensure forms are connected in containers
This commit is contained in:
parent
09627b8d86
commit
e3b304846d
@ -1,5 +1,4 @@
|
||||
const React = require('react');
|
||||
const ReduxForm = require('redux-form');
|
||||
const ReactIntl = require('react-intl');
|
||||
const Styled = require('styled-components');
|
||||
|
||||
@ -9,10 +8,6 @@ const fns = require('@ui/shared/functions');
|
||||
const Button = require('@ui/components/button');
|
||||
const Card = require('@ui/components/payment-card');
|
||||
|
||||
const {
|
||||
reduxForm
|
||||
} = ReduxForm;
|
||||
|
||||
const {
|
||||
FormattedMessage
|
||||
} = ReactIntl;
|
||||
@ -120,8 +115,4 @@ NewProjectBilling.propTypes = {
|
||||
onSubmit: React.PropTypes.func.isRequired
|
||||
};
|
||||
|
||||
module.exports = reduxForm({
|
||||
form: 'create-project',
|
||||
destroyOnUnmount: false,
|
||||
forceUnregisterOnUnmount: true
|
||||
})(NewProjectBilling);
|
||||
module.exports = NewProjectBilling;
|
||||
|
@ -1,15 +1,20 @@
|
||||
const React = require('react');
|
||||
const ReactRedux = require('react-redux');
|
||||
const ReduxForm = require('redux-form');
|
||||
const selectors = require('@state/selectors');
|
||||
const actions = require('@state/actions');
|
||||
|
||||
const PropTypes = require('@root/prop-types');
|
||||
const BillingForm = require('@components/new-project/billing');
|
||||
const NewProjectBilling = require('@components/new-project/billing');
|
||||
|
||||
const {
|
||||
connect
|
||||
} = ReactRedux;
|
||||
|
||||
const {
|
||||
reduxForm
|
||||
} = ReduxForm;
|
||||
|
||||
const {
|
||||
orgByIdSelector
|
||||
} = selectors;
|
||||
@ -18,6 +23,12 @@ const {
|
||||
handleNewProject
|
||||
} = actions;
|
||||
|
||||
const BillingForm = reduxForm({
|
||||
form: 'create-project',
|
||||
destroyOnUnmount: false,
|
||||
forceUnregisterOnUnmount: true
|
||||
})(NewProjectBilling);
|
||||
|
||||
const Billing = (props) => {
|
||||
|
||||
const {
|
||||
|
Loading…
Reference in New Issue
Block a user