-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Migrate addon links to TS #6246
Migrate addon links to TS #6246
Conversation
Hey, thanks a lot for starting another TS migration! Do you need any help? 🙂 |
Seems there are some issues here:
|
Codecov Report
@@ Coverage Diff @@
## next #6246 +/- ##
==========================================
+ Coverage 38.16% 38.19% +0.02%
==========================================
Files 645 646 +1
Lines 9655 9672 +17
Branches 355 365 +10
==========================================
+ Hits 3685 3694 +9
- Misses 5915 5920 +5
- Partials 55 58 +3
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## next #6246 +/- ##
==========================================
+ Coverage 38.09% 38.12% +0.02%
==========================================
Files 645 646 +1
Lines 9681 9698 +17
Branches 356 366 +10
==========================================
+ Hits 3688 3697 +9
- Misses 5939 5944 +5
- Partials 54 57 +3
Continue to review full report at Codecov.
|
…ook into pr/sairus2k/6246
const linksListener = e => { | ||
const { sbKind: kind, sbStory: story } = e.target.dataset; | ||
const linksListener = (e: SyntheticEvent<HTMLLinkElement>) => { | ||
const { sbKind: kind, sbStory: story } = e.currentTarget.dataset; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
currentTarget
is always document
which makes it throw on each click, see e.g.
https://next--storybooks-html.netlify.com/?path=/story/welcome--welcome
this.handleClick = this.handleClick.bind(this); | ||
} | ||
export default class LinkTo extends PureComponent<Props, State> { | ||
defaultProps: Props = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
forgot static
?
Issue: #5030
What I did
Migrate @storybook/addon-links to TypeScript