-
Notifications
You must be signed in to change notification settings - Fork 209
Conversation
|
||
Where `props` has a `theme` property. | ||
|
||
This codemod updates your code to use the `theme` from props and remove the |
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.
A small one, but I think this should be ... and removes
the ... ?
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.
Works either way. I read it as: "updates your code ... to remove the theme
argument"
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.
Oh, OK! Now I feel stupid, sorry bothering 😅
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.
You're no bother! You really helped get this going. Thank you!
Codecov Report
@@ Coverage Diff @@
## master #234 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 10 10
Lines 142 142
Branches 36 36
=====================================
Hits 142 142 Continue to review full report at Codecov.
|
What: This adds a codemod. It's still a work in progress
Why: To help people upgrade
How: A lot of help and inspiration from @tdeschryver
Checklist:
We need more test cases! There are definitely code styles that this doesn't handle. We should also probably consider the
css
prop which can accept dynamic style functions as well.