Rename redux-config/reduxConfig -> data-store/dataStore
This commit is contained in:
Родитель
11de690d98
Коммит
4edfb813f1
|
@ -4,7 +4,7 @@ import React, { Component, PropTypes } from 'react';
|
|||
import { Provider, Connector } from 'react-redux';
|
||||
import { bindActionCreators } from 'redux';
|
||||
|
||||
import reduxConfig from 'redux-config';
|
||||
import dataStore from 'data-store';
|
||||
import * as managementActions from 'actions/management';
|
||||
import * as userActions from 'actions/user';
|
||||
import { parseQuery } from 'utils';
|
||||
|
@ -77,7 +77,7 @@ export default class ManagementApp extends Component {
|
|||
|
||||
export function init() {
|
||||
React.render((
|
||||
<Provider store={reduxConfig}>
|
||||
<Provider store={dataStore}>
|
||||
{() => <ManagementApp/>}
|
||||
</Provider>
|
||||
), document.body);
|
||||
|
|
|
@ -5,7 +5,7 @@ import React, { Component, PropTypes } from 'react';
|
|||
import { Connector, Provider } from 'react-redux';
|
||||
import { bindActionCreators } from 'redux';
|
||||
|
||||
import reduxConfig from 'redux-config';
|
||||
import dataStore from 'data-store';
|
||||
import ErrorMessage from 'components/error';
|
||||
import DefaultLogin from 'views/login';
|
||||
import DefaultPurchase from 'views/purchase';
|
||||
|
@ -80,7 +80,7 @@ export default class PaymentApp extends Component {
|
|||
|
||||
export function init() {
|
||||
React.render((
|
||||
<Provider store={reduxConfig}>
|
||||
<Provider store={dataStore}>
|
||||
{function() {
|
||||
return <PaymentApp/>;
|
||||
}}
|
||||
|
|
|
@ -7,7 +7,7 @@ import SubmitButton from 'components/submit-button';
|
|||
import { gettext } from 'utils';
|
||||
import * as purchaseActions from 'actions/purchase';
|
||||
|
||||
import reduxConfig from 'redux-config';
|
||||
import dataStore from 'data-store';
|
||||
|
||||
|
||||
export default class CardChoice extends Component {
|
||||
|
@ -50,7 +50,7 @@ export default class CardChoice extends Component {
|
|||
}).done(function() {
|
||||
console.log('Successfully subscribed with existing card');
|
||||
|
||||
reduxConfig.dispatch(
|
||||
dataStore.dispatch(
|
||||
purchaseActions.complete()
|
||||
);
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ import { gettext } from 'utils';
|
|||
import CardInput from 'components/card-input';
|
||||
import SubmitButton from 'components/submit-button';
|
||||
import * as purchaseActions from 'actions/purchase';
|
||||
import reduxConfig from 'redux-config';
|
||||
import dataStore from 'data-store';
|
||||
|
||||
|
||||
const defaultFieldAttrs = {
|
||||
|
@ -147,7 +147,7 @@ export default class CardForm extends Component {
|
|||
}).done(function() {
|
||||
console.log('Successfully subscribed + completed payment');
|
||||
|
||||
reduxConfig.dispatch(
|
||||
dataStore.dispatch(
|
||||
purchaseActions.complete()
|
||||
);
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import React from 'react';
|
||||
import TestUtils from 'react/lib/ReactTestUtils';
|
||||
|
||||
import { create as createRedux } from 'redux-config';
|
||||
import { createReduxStore } from 'data-store';
|
||||
|
||||
import ManagementApp from 'apps/management/app';
|
||||
|
||||
|
@ -12,7 +12,7 @@ describe('management/app', function() {
|
|||
var fakeWindow;
|
||||
var FakeManagement;
|
||||
var FakeManageCards;
|
||||
var redux;
|
||||
var store;
|
||||
|
||||
beforeEach(function() {
|
||||
fakeWindow = {
|
||||
|
@ -22,11 +22,11 @@ describe('management/app', function() {
|
|||
};
|
||||
FakeManagement = helpers.stubComponent();
|
||||
FakeManageCards = helpers.stubComponent();
|
||||
redux = createRedux();
|
||||
store = createReduxStore();
|
||||
});
|
||||
|
||||
function mountView({ window = fakeWindow } = {}) {
|
||||
var FluxContainer = helpers.getFluxContainer(redux);
|
||||
var FluxContainer = helpers.getFluxContainer(store);
|
||||
|
||||
var container = TestUtils.renderIntoDocument(
|
||||
<FluxContainer>
|
||||
|
|
|
@ -3,7 +3,7 @@ import TestUtils from 'react/lib/ReactTestUtils';
|
|||
|
||||
import * as actionTypes from 'constants/action-types';
|
||||
import * as appActions from 'actions/app';
|
||||
import { createReduxStore } from 'redux-config';
|
||||
import { createReduxStore } from 'data-store';
|
||||
import ErrorMessage from 'components/error';
|
||||
|
||||
import * as helpers from './helpers';
|
||||
|
|
|
@ -5,7 +5,7 @@ import * as helpers from './helpers';
|
|||
|
||||
import * as actionTypes from 'constants/action-types';
|
||||
import * as purchaseActions from 'actions/purchase';
|
||||
import { createReduxStore } from 'redux-config';
|
||||
import { createReduxStore } from 'data-store';
|
||||
|
||||
import Purchase from 'views/purchase';
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче