Skip to content

Commit

Permalink
style(storybook): format stories
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimmy Andrade committed Jul 28, 2020
1 parent 7dc5048 commit 6491ecf
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
12 changes: 6 additions & 6 deletions packages/storybook/stories/0-Welcome.stories.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import React from 'react';
import { linkTo } from '@storybook/addon-links';
import { Welcome } from '@storybook/react/demo';
import React from "react";
import { linkTo } from "@storybook/addon-links";
import { Welcome } from "@storybook/react/demo";

export default {
title: 'Welcome',
title: "Welcome",
component: Welcome,
};

export const ToStorybook = () => <Welcome showApp={linkTo('Button')} />;
export const ToStorybook = () => <Welcome showApp={linkTo("Button")} />;

ToStorybook.story = {
name: 'to Storybook',
name: "to Storybook",
};
14 changes: 8 additions & 6 deletions packages/storybook/stories/1-Button.stories.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
import React from 'react';
import { action } from '@storybook/addon-actions';
import { Button } from '@storybook/react/demo';
import React from "react";
import { action } from "@storybook/addon-actions";
import { Button } from "@storybook/react/demo";

export default {
title: 'Button',
title: "Button",
component: Button,
};

export const Text = () => <Button onClick={action('clicked')}>Hello Button</Button>;
export const Text = () => (
<Button onClick={action("clicked")}>Hello Button</Button>
);

export const Emoji = () => (
<Button onClick={action('clicked')}>
<Button onClick={action("clicked")}>
<span role="img" aria-label="so cool">
😀 😎 👍 💯
</span>
Expand Down

0 comments on commit 6491ecf

Please sign in to comment.