Skip to content

Commit

Permalink
Data components: omit redundant bindActionCreators()
Browse files Browse the repository at this point in the history
  • Loading branch information
ockham authored and seear committed Feb 12, 2016
1 parent 0f1cbec commit 7cb9958
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions client/components/data/current-theme/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
* External dependencies
*/
import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import omit from 'lodash/object/omit';

Expand Down Expand Up @@ -65,5 +64,5 @@ export default connect(
currentTheme: getCurrentTheme( state, props.site.ID )
}
),
bindActionCreators.bind( null, { fetchCurrentTheme } )
{ fetchCurrentTheme }
)( CurrentThemeData );
3 changes: 1 addition & 2 deletions client/components/data/themes-list-fetcher/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import React from 'react';
import omit from 'lodash/object/omit';
import once from 'lodash/function/once';
import filter from 'lodash/collection/filter';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';

/**
Expand Down Expand Up @@ -148,5 +147,5 @@ export default connect(
}
}
),
bindActionCreators.bind( null, { query, fetchNextPage } )
{ query, fetchNextPage }
)( ThemesListFetcher );

0 comments on commit 7cb9958

Please sign in to comment.