mimir-ui-kit 1.31.0 → 1.31.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.
@@ -239,12 +239,12 @@ const TabTrail = forwardRef(
|
|
239
239
|
onTabChange == null ? void 0 : onTabChange(index);
|
240
240
|
};
|
241
241
|
const handleNext = () => {
|
242
|
-
|
242
|
+
const newIndex = (activeIndex + 1) % categories.length;
|
243
|
+
handleTabChange(newIndex);
|
243
244
|
};
|
244
245
|
const handlePrev = () => {
|
245
|
-
|
246
|
-
|
247
|
-
);
|
246
|
+
const newIndex = (activeIndex - 1 + categories.length) % categories.length;
|
247
|
+
handleTabChange(newIndex);
|
248
248
|
};
|
249
249
|
useEffect(() => {
|
250
250
|
var _a;
|