diff --git a/packages/go-ui-storybook/src/stories/Switch.stories.tsx b/packages/go-ui-storybook/src/stories/Switch.stories.tsx index e02c27f17a..134865335c 100644 --- a/packages/go-ui-storybook/src/stories/Switch.stories.tsx +++ b/packages/go-ui-storybook/src/stories/Switch.stories.tsx @@ -55,14 +55,14 @@ export default meta; export const Default: Story = { args: { - label: 'I agree to be awesome', + label: 'Enable notifications', value: false, }, }; export const Disabled: Story = { args: { - label: 'I agree to be awesome', + label: 'Enable notifications', value: false, disabled: true, }, @@ -70,7 +70,7 @@ export const Disabled: Story = { export const Checked: Story = { args: { - label: 'I agree to be awesome', + label: 'Enable notifications', value: true, }, }; diff --git a/packages/go-ui-storybook/src/stories/TextArea.stories.tsx b/packages/go-ui-storybook/src/stories/TextArea.stories.tsx index b51244d19d..8057ce4138 100644 --- a/packages/go-ui-storybook/src/stories/TextArea.stories.tsx +++ b/packages/go-ui-storybook/src/stories/TextArea.stories.tsx @@ -1,5 +1,6 @@ import { useArgs } from '@storybook/preview-api'; import type { + Args, Meta, StoryObj, } from '@storybook/react'; @@ -7,6 +8,8 @@ import { fn } from '@storybook/test'; import TextArea from './TextArea'; +type Story = StoryObj; + const meta: Meta = { title: 'Components/TextArea', component: TextArea, @@ -20,81 +23,81 @@ const meta: Meta = { args: { onChange: fn(), }, - decorators: [ - function Component(_, ctx) { - const [ - { value }, - setArgs, - ] = useArgs<{ value: string | undefined }>(); - const onChange = (val: string | undefined, name: string) => { - setArgs({ value: val }); - ctx.args.onChange(val, name); - }; - - return ( -