-
Notifications
You must be signed in to change notification settings - Fork 519
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
[TimelineRow]: Replace defaultProps with destructuring #2622
base: main
Are you sure you want to change the base?
Conversation
Partially Resolves jaegertracing#2596 - Remove defaultProps from the TimelineRow component, replace with destructuring Signed-off-by: Abhishek <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2622 +/- ##
==========================================
- Coverage 96.62% 96.59% -0.03%
==========================================
Files 255 255
Lines 7726 7730 +4
Branches 1939 1994 +55
==========================================
+ Hits 7465 7467 +2
- Misses 261 263 +2 ☔ View full report in Codecov by Sentry. |
Partially Resolves jaegertracing#2596 Signed-off-by: Abhishek <[email protected]>
width, | ||
style = {}, | ||
onClick, | ||
...rest |
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.
I don't follow this. What can be possibly provided via ...rest
if all the fields from the type are already mentioned as arguments? E.g. <TimelineRowCell data-testid="x">
should be an error because data-testid
is not part of the type declaration.
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.
data-testid
does not give error as of now, but does give an error when ...rest
is removed. shall I replace ...rest
with data-testid
?
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.
Partially Resolves jaegertracing#2596 Signed-off-by: Abhishek <[email protected]>
Partially Resolves jaegertracing#2596 Signed-off-by: Abhishek <[email protected]>
I have removed the ...rest from both components now, the issue has been fixed too |
Which problem is this PR solving?
Description of the changes
How was this change tested?
npm run test
npm run update-snapshots
Checklist
jaeger
:make lint test
jaeger-ui
:npm run lint
andnpm run test