We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2c2c9fa + ed8b89a commit b3edbcdCopy full SHA for b3edbcd
2 files changed
lib/IsotopeGrid/IsotopeGrid.js
@@ -351,4 +351,8 @@ IsotopeGrid.defaultProps = {
351
352
IsotopeGrid.Item = IsotopeItem;
353
354
-exports.default = IsotopeGrid;
+exports.default = (0, _reactRedux.connect)(function (state) {
355
+ return {
356
+ category: state.visibilityFilter && state.visibilityFilter.category
357
+ };
358
+})(IsotopeGrid);
src/IsotopeGrid/IsotopeGrid.jsx
@@ -289,4 +289,6 @@ IsotopeGrid.defaultProps = {
289
290
291
292
-export default IsotopeGrid;
+export default connect(state => ({
293
+ category: state.visibilityFilter && state.visibilityFilter.category,
294
+}))(IsotopeGrid);
0 commit comments