From d614bb76e5609403f2e61aaea0b878c0af637bb0 Mon Sep 17 00:00:00 2001 From: tooppaaa Date: Sat, 9 May 2020 11:29:15 +0200 Subject: [PATCH] cli: react stories homogenization --- .../template-csf/stories/1-Button.stories.js | 29 +++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/lib/cli/src/generators/WEBPACK_REACT/template-csf/stories/1-Button.stories.js b/lib/cli/src/generators/WEBPACK_REACT/template-csf/stories/1-Button.stories.js index b84fca566012..1197038fc862 100644 --- a/lib/cli/src/generators/WEBPACK_REACT/template-csf/stories/1-Button.stories.js +++ b/lib/cli/src/generators/WEBPACK_REACT/template-csf/stories/1-Button.stories.js @@ -1,6 +1,6 @@ import React from 'react'; - import { action } from '@storybook/addon-actions'; +import { linkTo } from '@storybook/addon-links'; import { Button } from '@storybook/react/demo'; export default { @@ -19,5 +19,30 @@ export const Emoji = () => ( ); Emoji.story = { - name: 'with emoji', + parameters: { notes: 'My notes on a button with emojis' }, +}; + +export const WithSomeEmojiAndAction = () => ( + +); + +WithSomeEmojiAndAction.story = { + name: 'with some emoji and action', + parameters: { notes: 'My notes on a button with emojis' }, +}; + +export const ButtonWithLinkToAnotherStory = () => ( + +); + +ButtonWithLinkToAnotherStory.story = { + name: 'button with link to another story', };