Skip to content

Commit

Permalink
Merge pull request #23935 from storybookjs/kasper/23903
Browse files Browse the repository at this point in the history
Addons: Fix key is not a prop warning
  • Loading branch information
kasperpeulen committed Aug 24, 2023
2 parents 9bdffe1 + 8106354 commit 0d1960e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/ui/components/src/components/tabs/tabs.helpers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ export const childrenToList = (children: TabsProps['children']) =>
const render: FC<Addon_RenderOptions> = (
typeof content === 'function'
? content
: ({ active, key }: any) => (
<VisuallyHidden key={key} active={active} role="tabpanel">
: ({ active }) => (
<VisuallyHidden active={active} role="tabpanel">
{content}
</VisuallyHidden>
)
Expand Down

0 comments on commit 0d1960e

Please sign in to comment.