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

Commit

Permalink
Fixed a problem that @storybook/addon-knobs has not initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
kurone-kito committed Apr 1, 2019
1 parent 82e8939 commit 8b65adc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/stories/index.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ export const interactions: IInteraction[] = [
];

export default () =>
storiesOf('Welcome', module).add('to Storybook', () => (
<div>{text('title', 'Hello')}</div>
));
storiesOf('Welcome', module)
.addDecorator(withKnobs)
.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 8b65adc

Please sign in to comment.