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
- setActiveIndex((prevIndex) => (prevIndex + 1) % categories.length);
242
+ const newIndex = (activeIndex + 1) % categories.length;
243
+ handleTabChange(newIndex);
243
244
  };
244
245
  const handlePrev = () => {
245
- setActiveIndex(
246
- (prevIndex) => (prevIndex - 1 + categories.length) % categories.length
247
- );
246
+ const newIndex = (activeIndex - 1 + categories.length) % categories.length;
247
+ handleTabChange(newIndex);
248
248
  };
249
249
  useEffect(() => {
250
250
  var _a;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mimir-ui-kit",
3
3
  "private": false,
4
- "version": "1.31.0",
4
+ "version": "1.31.1",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {