From 615a29c824d4bb03867d2a5a30a0c87f5364b54a Mon Sep 17 00:00:00 2001 From: Owen Niblock Date: Fri, 1 Mar 2024 10:27:59 +0000 Subject: [PATCH] Linting --- .../react/src/TabPanels/TabPanels.features.stories.tsx | 8 ++------ packages/react/src/TabPanels/TabPanels.tsx | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/packages/react/src/TabPanels/TabPanels.features.stories.tsx b/packages/react/src/TabPanels/TabPanels.features.stories.tsx index 8fef0136ef0..99cb1f4cd56 100644 --- a/packages/react/src/TabPanels/TabPanels.features.stories.tsx +++ b/packages/react/src/TabPanels/TabPanels.features.stories.tsx @@ -12,9 +12,7 @@ export default { export const Selected = () => ( One - - Two - + Two Three One Two @@ -48,9 +46,7 @@ export const ManyTabs = () => ( Eight Nine Ten - - Eleven - + Eleven One Two Three diff --git a/packages/react/src/TabPanels/TabPanels.tsx b/packages/react/src/TabPanels/TabPanels.tsx index b4906c26c17..fc627954f37 100644 --- a/packages/react/src/TabPanels/TabPanels.tsx +++ b/packages/react/src/TabPanels/TabPanels.tsx @@ -81,7 +81,7 @@ function TabPanels({children, id, ...props}: TabPanelsProps) { // If it's a panel, then add aria-labelledby="{id}-tab-{index}" let tabIndex = 0 let panelIndex = 0 - const childrenWithProps = React.Children.map(children, (child) => { + const childrenWithProps = React.Children.map(children, child => { if (React.isValidElement(child) && child.type === Tab && !child.props.id) { return React.cloneElement(child, {id: `${id}-tab-${tabIndex++}`}) }