@cashub/ui 0.36.0 → 0.37.1
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.
- package/package.json +1 -1
- package/table/Table.js +3 -2
- package/wizard/Wizard.js +1 -1
package/package.json
CHANGED
package/table/Table.js
CHANGED
|
@@ -52,7 +52,8 @@ const Table = _ref => {
|
|
|
52
52
|
translation,
|
|
53
53
|
beforeCreateRow,
|
|
54
54
|
popoverContainer,
|
|
55
|
-
centerFooter = false
|
|
55
|
+
centerFooter = false,
|
|
56
|
+
showPager = true
|
|
56
57
|
} = _ref;
|
|
57
58
|
const tableRef = (0, _react.useRef)(null);
|
|
58
59
|
const {
|
|
@@ -269,7 +270,7 @@ const Table = _ref => {
|
|
|
269
270
|
center: centerFooter,
|
|
270
271
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_TableFooterInfo.default, {
|
|
271
272
|
children: texts.info.replace('_START_', start).replace('_END_', end).replace('_TOTAL_', total)
|
|
272
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_TableFooterPager.default, {
|
|
273
|
+
}), showPager && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_TableFooterPager.default, {
|
|
273
274
|
center: centerFooter,
|
|
274
275
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Paginate.default, {
|
|
275
276
|
currentPage: currentPage,
|
package/wizard/Wizard.js
CHANGED
|
@@ -89,7 +89,7 @@ const Wizard = props => {
|
|
|
89
89
|
};
|
|
90
90
|
}, [goToStep, isLastStep, nextStep, previousStep]);
|
|
91
91
|
const childrenWithProps = (0, _react.useMemo)(() => {
|
|
92
|
-
const validChildren = children.filter(child => !!child);
|
|
92
|
+
const validChildren = _react.Children.toArray(children).filter(child => !!child);
|
|
93
93
|
return _react.Children.map(validChildren, (child, index) => {
|
|
94
94
|
if (!child) return null;
|
|
95
95
|
const className = index + 1 === currentStep && 'active';
|