Skip to content

Commit

Permalink
0.14.1
Browse files Browse the repository at this point in the history
  • Loading branch information
eatyourgreens committed Nov 14, 2023
1 parent c1c88c2 commit aaec08d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
9 changes: 4 additions & 5 deletions lib/cjs/components/step-through.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,24 +156,23 @@ var StepThrough = /*#__PURE__*/function (_Component) {
}, {
key: "render",
value: function render() {
var _this3 = this,
_jsxs2;
var _this3 = this;
var childrenCount = _react["default"].Children.count(this.props.children);
var swipeOptions = {
startSlide: this.state.step,
continuous: false,
callback: this.handleStep.bind(this, childrenCount)
};
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", (_jsxs2 = {
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", _defineProperty(_defineProperty(_defineProperty({
className: "step-through"
}, _defineProperty(_jsxs2, "className", this.props.className), _defineProperty(_jsxs2, "style", this.props.style), _defineProperty(_jsxs2, "children", [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactSwipe["default"], {
}, "className", this.props.className), "style", this.props.style), "children", [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactSwipe["default"], {
ref: function ref(el) {
_this3.swiper = el;
},
className: "step-through-content",
swipeOptions: swipeOptions,
children: this.props.children
}), this.renderControls(childrenCount)]), _jsxs2));
}), this.renderControls(childrenCount)]));
}
}]);
return StepThrough;
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zooniverse-react-components",
"version": "0.14.0",
"version": "0.14.1",
"description": "Zooniverse-React-Components ===========================",
"main": "lib/cjs/index.js",
"module": "lib/esm/index.js",
Expand Down

0 comments on commit aaec08d

Please sign in to comment.