Skip to content

Commit

Permalink
Merge pull request #3070 from storybooks/fix-links-example
Browse files Browse the repository at this point in the history
Fix links addon examples
  • Loading branch information
Hypnosphi authored Feb 24, 2018
2 parents fed8c21 + a4d7bb1 commit 0c17736
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/official-storybook/stories/addon-links.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ storiesOf('Addons|Links.Link', module)

storiesOf('Addons|Links.Button', module)
.add('First', () => (
<button onClick={linkTo('Addon Links.Button', 'Second')}>Go to "Second"</button>
<button onClick={linkTo('Addons|Links.Button', 'Second')}>Go to "Second"</button>
))
.add('Second', () => (
<button onClick={linkTo('Addon Links.Button', 'First')}>Go to "First"</button>
<button onClick={linkTo('Addons|Links.Button', 'First')}>Go to "First"</button>
));

storiesOf('Addons|Links.Select', module)
.add('Index', () => (
<select value="Index" onChange={linkTo('Addon Links.Select', e => e.currentTarget.value)}>
<select value="Index" onChange={linkTo('Addons|Links.Select', e => e.currentTarget.value)}>
<option>Index</option>
<option>First</option>
<option>Second</option>
Expand All @@ -30,7 +30,7 @@ storiesOf('Addons|Links.Select', module)
.add('Third', () => <LinkTo story="Index">Go back</LinkTo>);

storiesOf('Addons|Links.Href', module).add('log', () => {
hrefTo('Addon Links.Href', 'log').then(href => action('URL of this story')({ href }));
hrefTo('Addons|Links.Href', 'log').then(href => action('URL of this story')({ href }));

return <span>See action logger</span>;
});

0 comments on commit 0c17736

Please sign in to comment.