Add story to AddStatementModal
This commit is contained in:
parent
d3397b6eba
commit
53ecb50aa7
1 changed files with 21 additions and 0 deletions
21
src/components/AddStatementModal/stories.js
Normal file
21
src/components/AddStatementModal/stories.js
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
import React from 'react';
|
||||||
|
import { storiesOf, action, linkTo } from '@kadira/storybook';
|
||||||
|
import { withKnobs, text, boolean, number } from '@kadira/storybook-addon-knobs';
|
||||||
|
import withReadme from 'storybook-readme/with-readme';
|
||||||
|
|
||||||
|
import AddStatementModal from './';
|
||||||
|
// import README from './README.md';
|
||||||
|
|
||||||
|
const stories = storiesOf('AddStatementModal', module);
|
||||||
|
|
||||||
|
stories.addDecorator(withKnobs);
|
||||||
|
|
||||||
|
stories.addWithInfo(
|
||||||
|
'AddStatementModal',
|
||||||
|
'Description of the story',
|
||||||
|
withReadme('README',
|
||||||
|
() => (
|
||||||
|
<AddStatementModal show={boolean('show', true)} onHide={action('onHide')} onValidate={action('onValidate')} />
|
||||||
|
)
|
||||||
|
)
|
||||||
|
);
|
||||||
Loading…
Add table
Reference in a new issue