Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
Fixed the scenario structure for Storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
kurone-kito committed Mar 28, 2019
1 parent d6907d3 commit 60148dc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions src/stories/Dummy.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { storiesOf } from '@storybook/react';
import React from 'react';
import Dummy from '~/app/Dummy';

export default storiesOf('Dummy', module)
.add('with text', () => <Dummy>Hello, World!</Dummy>)
.add('with some emoji', () => <Dummy>馃榾 馃槑 馃憤 馃挴</Dummy>);
export default () =>
storiesOf('Dummy', module)
.add('with text', () => <Dummy>Hello, World!</Dummy>)
.add('with some emoji', () => <Dummy>馃榾 馃槑 馃憤 馃挴</Dummy>);
7 changes: 4 additions & 3 deletions src/stories/index.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ export const interactions: IInteraction[] = [
}
];

export default storiesOf('Welcome', module).add('to Storybook', () => (
<div>{text('title', 'Hello')}</div>
));
export default () =>
storiesOf('Welcome', module).add('to Storybook', () => (
<div>{text('title', 'Hello')}</div>
));

// import { Button, Welcome } from '@storybook/react/demo';
// import { action } from '@storybook/addon-actions';
Expand Down

0 comments on commit 60148dc

Please sign in to comment.