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

Improve linkTo documentation #1793

Merged
merged 3 commits into from
Sep 5, 2017
Merged

Improve linkTo documentation #1793

merged 3 commits into from
Sep 5, 2017

Conversation

joscha
Copy link
Member

@joscha joscha commented Sep 4, 2017

The linkTo docs are incomplete, references DefinitelyTyped/DefinitelyTyped#19499

The linkTo docs are incomplete, references DefinitelyTyped/DefinitelyTyped#19499
@joscha joscha requested a review from ndelangen September 4, 2017 11:06
@codecov
Copy link

codecov bot commented Sep 4, 2017

Codecov Report

Merging #1793 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1793   +/-   ##
=======================================
  Coverage   21.14%   21.14%           
=======================================
  Files         252      252           
  Lines        5693     5693           
  Branches      687      697   +10     
=======================================
  Hits         1204     1204           
+ Misses       3969     3938   -31     
- Partials      520      551   +31
Impacted Files Coverage Δ
app/react/src/server/utils.js 0% <0%> (-32.15%) ⬇️
addons/storyshots/src/storybook-channel-mock.js 0% <0%> (ø) ⬆️
...s/left_panel/stories_tree/tree_decorators_utils.js 45.23% <0%> (ø) ⬆️
addons/info/src/components/Node.js 38.88% <0%> (ø) ⬆️
addons/knobs/src/components/PropForm.js 8.51% <0%> (ø) ⬆️
addons/knobs/src/KnobStore.js 6.81% <0%> (ø) ⬆️
addons/knobs/src/components/types/Number.js 8.06% <0%> (ø) ⬆️
addons/info/src/components/markdown/code.js 24.13% <0%> (ø) ⬆️
lib/ui/src/modules/ui/containers/layout.js 12.5% <0%> (ø) ⬆️
lib/ui/src/modules/ui/libs/filters.js 47.36% <0%> (ø) ⬆️
... and 15 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2b0c8ab...7cc09a6. Read the comment docs.

@@ -36,12 +36,14 @@ Have a look at the linkTo function:
import { linkTo } from '@storybook/addon-links'

linkTo('Toggle', 'off')
linkTo(() => 'Toggle', () => 'off')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not understand this example, what does this do?

@joscha
Copy link
Member Author

joscha commented Sep 4, 2017 via email

@ndelangen
Copy link
Member

Interesting, TIL we have callback based linkTo 👍

@ndelangen ndelangen merged commit 4966a71 into master Sep 5, 2017
@ndelangen ndelangen deleted the joscha/linkto-docs branch September 5, 2017 11:23
@@ -36,12 +36,14 @@ Have a look at the linkTo function:
import { linkTo } from '@storybook/addon-links'

linkTo('Toggle', 'off')
linkTo(() => 'Toggle', () => 'off')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't it be?

linkTo((event) => 'Toggle', (event) => 'off')

@shilman shilman changed the title docs: linkTo Improve linkTo documentation Sep 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants