Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix links addon examples #3070

Merged
merged 1 commit into from
Feb 24, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>;
});