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
- 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
  ".": {