-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Description
Description
The Tabs component in src/theme/Tabs/index.tsx currently defines the list items for tabs inline within the TabList component. There is an explicit TODO comment indicating that this should be extracted:
// TODO extract TabListItemRefactoring this into a separate component will improve code readability, maintainability, and testability.
Location
- File: src/theme/Tabs/index.tsx
- Line: ~77 (inside TabList function)
Proposed Solution
- Create a new component
TabListItem(either in the same file or a new file). - Move the logic for rendering the
<li>element into this new component. - Pass necessary props (
value,label,attributes,selectedValue,
handleKeydown, handleTabChange,tabRefs) toTabListItem. - Replace the inline
<li>with<TabListItem />.
Metadata
Metadata
Assignees
Labels
No labels