From b56fd08412b46f099e35627bdd1e3bbaf8618e27 Mon Sep 17 00:00:00 2001 From: jaebradley Date: Thu, 24 May 2018 13:11:42 -0400 Subject: [PATCH] docs(readme-storybook-addons): update storybook README addons --- src/Button/Button.stories.jsx | 4 +++- src/CheckBox/CheckBox.stories.jsx | 4 +++- src/Dropdown/Dropdown.stories.jsx | 4 +++- src/Fieldset/Fieldset.stories.jsx | 4 +++- src/Hyperlink/Hyperlink.stories.jsx | 8 ++++++-- src/Icon/Icon.stories.jsx | 4 +++- src/MailtoLink/MailtoLink.stories.jsx | 4 +++- src/RadioButtonGroup/RadioButtonGroup.stories.jsx | 5 ++++- src/SearchField/SearchField.stories.jsx | 4 +++- 9 files changed, 31 insertions(+), 10 deletions(-) diff --git a/src/Button/Button.stories.jsx b/src/Button/Button.stories.jsx index 93e7f2d9a6..885914251f 100644 --- a/src/Button/Button.stories.jsx +++ b/src/Button/Button.stories.jsx @@ -5,14 +5,16 @@ import { action } from '@storybook/addon-actions'; import centered from '@storybook/addon-centered'; import { checkA11y } from '@storybook/addon-a11y'; import { withInfo } from '@storybook/addon-info'; +import { withReadme } from 'storybook-readme'; import README from './README.md'; import Button from './index'; storiesOf('Button', module) - .addDecorator((story, context) => withInfo({}, README)(story)(context)) + .addDecorator((story, context) => withInfo()(story)(context)) .addDecorator(centered) .addDecorator(checkA11y) + .addDecorator(withReadme(README)) .add('basic usage', () => (