Skip to content

Commit

Permalink
Fix linter issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcgrtz committed Apr 1, 2024
1 parent 9a93133 commit 94212cc
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 25 deletions.
4 changes: 2 additions & 2 deletions src/button/stories/index.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ const meta: Meta = {
},
};

export const ButtonStory: StoryFn<typeof Button> = (args) => (
<Button {...args} />
export const ButtonStory: StoryFn<typeof Button> = (properties) => (
<Button {...properties} />
);
ButtonStory.storyName = 'Button';

Expand Down
4 changes: 3 additions & 1 deletion src/chat/stories/index.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ const meta: Meta = {
},
};

export const ChatStory: StoryFn<typeof Chat> = (args) => <Chat {...args} />;
export const ChatStory: StoryFn<typeof Chat> = (properties) => (
<Chat {...properties} />
);
ChatStory.storyName = 'Chat';

export default meta;
16 changes: 7 additions & 9 deletions src/datetime/stories/index.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import React from 'react';
import type {Meta, StoryObj} from '@storybook/react';
import type {Meta, StoryFn} from '@storybook/react';
import DateTime from '..';

const defaultArgs = {
dateTime: new Date(),
};

const meta: Meta = {
title: 'Design System/Components',
component: DateTime,
Expand All @@ -14,12 +10,14 @@ const meta: Meta = {
control: 'date',
},
},
args: defaultArgs,
args: {
dateTime: new Date(),
},
};

export const DateTimeStory: StoryObj<typeof DateTime> = (
args: typeof defaultArgs
) => <DateTime {...args} />;
export const DateTimeStory: StoryFn<typeof DateTime> = (properties) => (
<DateTime {...properties} />
);
DateTimeStory.storyName = 'Date and time';

export default meta;
20 changes: 9 additions & 11 deletions src/hamburger-button/stories/index.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
import React from 'react';
import type {Meta, StoryObj} from '@storybook/react';
import type {Meta, StoryFn} from '@storybook/react';
import HamburgerButton from '..';

const defaultArgs = {
label: 'Men眉 anzeigen',
labelActive: 'Men眉 ausblenden',
position: {blockStart: '20px', inlineStart: '20px'},
};

const meta: Meta = {
title: 'Design System/Components',
component: HamburgerButton,
args: defaultArgs,
args: {
label: 'Men眉 anzeigen',
labelActive: 'Men眉 ausblenden',
position: {blockStart: '20px', inlineStart: '20px'},
},
};

export const HamburgerButtonStory: StoryObj<typeof HamburgerButton> = (
args: typeof defaultArgs
) => <HamburgerButton {...args} />;
export const HamburgerButtonStory: StoryFn<typeof HamburgerButton> = (
properties
) => <HamburgerButton {...properties} />;
HamburgerButtonStory.storyName = 'Hamburger button';

export default meta;
4 changes: 2 additions & 2 deletions src/logo/stories/index.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import type {Story, Meta} from '@storybook/react';
import type {StoryFn, Meta} from '@storybook/react';
import Logo from '..';

const meta: Meta = {
Expand All @@ -12,7 +12,7 @@ const meta: Meta = {
},
};

const Template: Story = (args) => <Logo {...args} />;
const Template: StoryFn<typeof Logo> = (properties) => <Logo {...properties} />;

export const LogoStory = Template.bind({});
LogoStory.storyName = 'Default logo';
Expand Down

0 comments on commit 94212cc

Please sign in to comment.