Skip to content

Commit

Permalink
rework: Remove s2d configuration from story
Browse files Browse the repository at this point in the history
  • Loading branch information
d-beezee committed Dec 20, 2024
1 parent a453921 commit b58cf3b
Showing 1 changed file with 7 additions and 26 deletions.
33 changes: 7 additions & 26 deletions src/stories/accordion-new/label.stories.tsx
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -15,11 +14,12 @@ const meta = {
component: AccordionNew.Label,
decorators: [
(Story: React.ComponentType, context) => {
return(
<AccordionNew level={3} isCompact={context.args.isCompact}>
<Story />
</AccordionNew>
)},
return (
<AccordionNew level={3} isCompact={context.args.isCompact}>
<Story />
</AccordionNew>
);
},
],
render: ({ ...args }) => {
return (
Expand All @@ -32,7 +32,6 @@ const meta = {
/>
</AccordionNew.Header>
</AccordionNew.Section>

);
},
} satisfies Meta<StoryArgs>;
Expand All @@ -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",
},
],
},
},
};

0 comments on commit b58cf3b

Please sign in to comment.