Skip to content

Commit

Permalink
chore: use story types in CSF3 example
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbf committed Jul 13, 2021
1 parent 70888b3 commit 0b850ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/react-ts/src/AccountForm.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { ComponentMeta } from '@storybook/react';
import { ComponentStory, ComponentMeta } from '@storybook/react';
import { screen } from '@testing-library/dom';
import userEvent from '@testing-library/user-event';
import { AccountForm, AccountFormProps } from './AccountForm';
Expand All @@ -14,7 +14,7 @@ export default {
// export const Standard = (args: AccountFormProps) => <AccountForm {...args} />;
// Standard.args = { passwordVerification: false };

export const Standard = {
export const Standard: ComponentStory<typeof AccountForm> = {
// render: (args: AccountFormProps) => <AccountForm {...args} />,
args: { passwordVerification: false },
};
Expand Down Expand Up @@ -51,7 +51,7 @@ export const StandardFailHover = {
},
};

export const Verification = {
export const Verification: ComponentStory<typeof AccountForm> = {
args: { passwordVerification: true },
};

Expand Down

0 comments on commit 0b850ae

Please sign in to comment.