mimir-ui-kit 1.31.0 → 1.31.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -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;
|