From a3ef1dcf79d612fcc509fc14e7ffff5cfecbd14c Mon Sep 17 00:00:00 2001 From: tooppaaa Date: Sat, 9 May 2020 11:29:03 +0200 Subject: [PATCH] cli: react-scripts stories homogenization --- .../src/stories/1-Button.stories.js | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/lib/cli/src/generators/REACT_SCRIPTS/template-csf/src/stories/1-Button.stories.js b/lib/cli/src/generators/REACT_SCRIPTS/template-csf/src/stories/1-Button.stories.js index 6bcfa2146627..1197038fc862 100644 --- a/lib/cli/src/generators/REACT_SCRIPTS/template-csf/src/stories/1-Button.stories.js +++ b/lib/cli/src/generators/REACT_SCRIPTS/template-csf/src/stories/1-Button.stories.js @@ -1,5 +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 { @@ -16,3 +17,32 @@ export const Emoji = () => ( ); + +Emoji.story = { + 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', +};