Skip to content

Commit b3edbcd

Browse files
Merge pull request #126 from webdev-dev/master
Isotope Grid V2 Fix
2 parents 2c2c9fa + ed8b89a commit b3edbcd

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

lib/IsotopeGrid/IsotopeGrid.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,4 +351,8 @@ IsotopeGrid.defaultProps = {
351351

352352
IsotopeGrid.Item = IsotopeItem;
353353

354-
exports.default = IsotopeGrid;
354+
exports.default = (0, _reactRedux.connect)(function (state) {
355+
return {
356+
category: state.visibilityFilter && state.visibilityFilter.category
357+
};
358+
})(IsotopeGrid);

src/IsotopeGrid/IsotopeGrid.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,4 +289,6 @@ IsotopeGrid.defaultProps = {
289289

290290
IsotopeGrid.Item = IsotopeItem;
291291

292-
export default IsotopeGrid;
292+
export default connect(state => ({
293+
category: state.visibilityFilter && state.visibilityFilter.category,
294+
}))(IsotopeGrid);

0 commit comments

Comments
 (0)