From b58cf3bd84d61ff108a041daee411ac6bb089235 Mon Sep 17 00:00:00 2001 From: Davide Bizzi Date: Fri, 20 Dec 2024 17:13:30 +0100 Subject: [PATCH] rework: Remove s2d configuration from story --- src/stories/accordion-new/label.stories.tsx | 33 +++++---------------- 1 file changed, 7 insertions(+), 26 deletions(-) diff --git a/src/stories/accordion-new/label.stories.tsx b/src/stories/accordion-new/label.stories.tsx index 6b6678cf..e218ef09 100644 --- a/src/stories/accordion-new/label.stories.tsx +++ b/src/stories/accordion-new/label.stories.tsx @@ -1,9 +1,8 @@ import { Meta, StoryObj } from "@storybook/react"; -import { AccordionNew } from "."; import React from "react"; +import { AccordionNew } from "."; import { AccordionLabelArgs } from "./AccordionLabel"; - type StoryArgs = AccordionLabelArgs & { isCompact?: boolean; hasSubtitles?: boolean; @@ -15,11 +14,12 @@ const meta = { component: AccordionNew.Label, decorators: [ (Story: React.ComponentType, context) => { - return( - - - - )}, + return ( + + + + ); + }, ], render: ({ ...args }) => { return ( @@ -32,7 +32,6 @@ const meta = { /> - ); }, } satisfies Meta; @@ -50,22 +49,4 @@ export const Default: Story = { args: { ...defaultArgs, }, - parameters: { - s2d: { - initArgs: { - ":selector": "[data-garden-id='accordions.button']", - }, - variantProperties: [ /* Figma variant properties definition here */ - { - fromArg: "isCompact", - }, - { - fromArg: "hasSubtitles", - }, - { - fromArg: "hasSupertitles", - }, - ], - }, - }, };