From e4d8ad3d92f144c4c4b9e784de23cd71b9d7e0fe Mon Sep 17 00:00:00 2001 From: Marco D'Auria Date: Fri, 22 Sep 2023 10:31:17 +0200 Subject: [PATCH] fix: review --- .../sbb-tab-group/sbb-tab-group.stories.tsx | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/components/sbb-tab-group/sbb-tab-group.stories.tsx b/src/components/sbb-tab-group/sbb-tab-group.stories.tsx index 3b4bbd90f61..5ac5f0c30be 100644 --- a/src/components/sbb-tab-group/sbb-tab-group.stories.tsx +++ b/src/components/sbb-tab-group/sbb-tab-group.stories.tsx @@ -6,7 +6,7 @@ import { withActions } from '@storybook/addon-actions/decorator'; import type { Meta, StoryObj, ArgTypes, Args, Decorator } from '@storybook/html'; import type { InputType } from '@storybook/types'; -const firstTabTitle = ({ label, ...args }): JSX.Element => ( +const firstTabTitle = (label, args): JSX.Element => ( {label} ); @@ -40,9 +40,9 @@ const tabPanelFour = (): JSX.Element => ( ); -const DefaultTemplate = (args): JSX.Element => ( - - {firstTabTitle(args)} +const DefaultTemplate = ({ size, label, ...args }): JSX.Element => ( + + {firstTabTitle(label, args)} {tabPanelOne()} Tab title two @@ -56,9 +56,9 @@ const DefaultTemplate = (args): JSX.Element => ( ); -const IconsAndNumbersTemplate = (args): JSX.Element => ( - - {firstTabTitle(args)} +const IconsAndNumbersTemplate = ({ size, label, ...args }): JSX.Element => ( + + {firstTabTitle(label, args)} {tabPanelOne()} @@ -78,10 +78,10 @@ const IconsAndNumbersTemplate = (args): JSX.Element => ( ); -const NestedTemplate = (args): JSX.Element => ( - - {firstTabTitle(args)} - +const NestedTemplate = ({ size, label, ...args }): JSX.Element => ( + + {firstTabTitle(label, args)} + Nested tab
Diam maecenas ultricies mi eget mauris pharetra et ultrices neque ornare aenean euismod