Separate active tabs per request

This commit is contained in:
Gregory Schier
2024-09-03 07:33:48 -07:00
parent 7f952300b3
commit ff459d1570
3 changed files with 31 additions and 14 deletions

View File

@@ -1,6 +1,6 @@
import classNames from 'classnames';
import type { ReactNode } from 'react';
import { memo, useCallback, useEffect, useRef } from 'react';
import { memo, useCallback, useRef } from 'react';
import { Icon } from '../Icon';
import type { RadioDropdownProps } from '../RadioDropdown';
import { RadioDropdown } from '../RadioDropdown';
@@ -60,11 +60,6 @@ export function Tabs({
[onChangeValue],
);
useEffect(() => {
if (value === undefined) return;
handleTabChange(value);
}, [handleTabChange, value]);
return (
<div
ref={ref}