@citygross/components 0.7.210 → 0.7.211

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -58,8 +58,8 @@ var Slider = function (_a) {
58
58
  React__default["default"].createElement(Slider_styles.LeftIconButtonContainer, null,
59
59
  React__default["default"].createElement(IconButton.IconButton, { isDisabled: currentPage < 1, color: iconColor, icon: React__default["default"].createElement(Icon.Icons.ChevronLeft, { color: 'white' }), height: iconHeight, width: iconWidth, borderRadius: 100, onClick: function () {
60
60
  var _a;
61
- var prevPage = pageSections.reverse().find(function (section) { return section < currentPage; }) ||
62
- 0;
61
+ var prevSections = pageSections.slice().reverse();
62
+ var prevPage = prevSections.find(function (section) { return section < currentPage; }) || 0;
63
63
  (_a = ref === null || ref === void 0 ? void 0 : ref.current) === null || _a === void 0 ? void 0 : _a.slickGoTo(prevPage);
64
64
  } })),
65
65
  React__default["default"].createElement(Slider_styles.RightIconButtonContainer, null,
@@ -49,8 +49,8 @@ var Slider = function (_a) {
49
49
  React.createElement(LeftIconButtonContainer, null,
50
50
  React.createElement(IconButton, { isDisabled: currentPage < 1, color: iconColor, icon: React.createElement(Icons.ChevronLeft, { color: 'white' }), height: iconHeight, width: iconWidth, borderRadius: 100, onClick: function () {
51
51
  var _a;
52
- var prevPage = pageSections.reverse().find(function (section) { return section < currentPage; }) ||
53
- 0;
52
+ var prevSections = pageSections.slice().reverse();
53
+ var prevPage = prevSections.find(function (section) { return section < currentPage; }) || 0;
54
54
  (_a = ref === null || ref === void 0 ? void 0 : ref.current) === null || _a === void 0 ? void 0 : _a.slickGoTo(prevPage);
55
55
  } })),
56
56
  React.createElement(RightIconButtonContainer, null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citygross/components",
3
- "version": "0.7.210",
3
+ "version": "0.7.211",
4
4
  "license": "ISC",
5
5
  "sideEffects": false,
6
6
  "main": "./build/cjs/components/src/index.js",
@@ -74,5 +74,5 @@
74
74
  "react-slick": "^0.30.1",
75
75
  "slick-carousel": "^1.8.1"
76
76
  },
77
- "gitHead": "15131526bcc36059fd40cbe0e5a30a34dc220dd5"
77
+ "gitHead": "d46519d614514f303d66b6d91da301993d0a9fcc"
78
78
  }