Skip to content

Commit

Permalink
added eslint rule @typescript-eslint/no-deprecated, and adopted the n…
Browse files Browse the repository at this point in the history
…ew react 19 way of using context
  • Loading branch information
KaiHotz committed Dec 8, 2024
1 parent f429925 commit 582a015
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Tabs/Tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@ export const Tabs: FC<ITabsProps> = ({ id = 'tabs', children, testId, selected,

return (
<div id={id} data-testId={testId}>
<TabListContext.Provider value={{ selected, onTabChange, tabsId: id }}>{tabList}</TabListContext.Provider>
<TabPanelContext.Provider
<TabListContext value={{ selected, onTabChange, tabsId: id }}>{tabList}</TabListContext>
<TabPanelContext
value={{
role: 'tabpanel',
id: `${id}-${selected}-tab`,
'aria-labelledby': `${id}-${selected}`,
}}
>
{tabPanels[selected]}
</TabPanelContext.Provider>
</TabPanelContext>
</div>
);
};

0 comments on commit 582a015

Please sign in to comment.