Skip to content
This repository was archived by the owner on Aug 23, 2022. It is now read-only.

Commit f6be522

Browse files
committed
Fixing react-redux dep to reduce bundle size
1 parent 78598ab commit f6be522

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/components/control-component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { Component, createElement, cloneElement, PropTypes } from 'react';
2-
import connect from 'react-redux/lib/components/connect';
2+
import { connect } from 'react-redux';
33
import { compose } from 'redux';
44
import identity from 'lodash/identity';
55
import shallowEqual from '../utils/shallow-equal';

src/components/errors-component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { Component, PropTypes } from 'react';
2-
import connect from 'react-redux/lib/components/connect';
2+
import { connect } from 'react-redux';
33
import _get from '../utils/get';
44
import map from '../utils/map';
55
import compact from 'lodash/compact';

src/components/field-component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import identity from 'lodash/identity';
55
import omit from 'lodash/omit';
66
import isPlainObject from 'lodash/isPlainObject';
77
import pick from 'lodash/pick';
8-
import connect from 'react-redux/lib/components/connect';
8+
import { connect } from 'react-redux';
99

1010
import actions from '../actions';
1111
import Control from './control-component';

src/components/fieldset-component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { Component, PropTypes } from 'react';
2-
import connect from 'react-redux/lib/components/connect';
2+
import { connect } from 'react-redux';
33
import getModel from '../utils/get-model';
44
import omit from 'lodash/omit';
55

src/components/form-component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { Component, PropTypes } from 'react';
2-
import connect from 'react-redux/lib/components/connect';
2+
import { connect } from 'react-redux';
33
import shallowEqual from '../utils/shallow-equal';
44
import _get from '../utils/get';
55
import mapValues from '../utils/map-values';

0 commit comments

Comments
 (0)