-
Notifications
You must be signed in to change notification settings - Fork 32
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
Replace style props to styles in [Accordion] #69
Replace style props to styles in [Accordion] #69
Conversation
All components in dooboo-ui should follow this pattern.
Codecov Report
@@ Coverage Diff @@
## master #69 +/- ##
==========================================
+ Coverage 95.37% 95.39% +0.01%
==========================================
Files 21 21
Lines 541 543 +2
Branches 232 234 +2
==========================================
+ Hits 516 518 +2
Misses 25 25 |
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.
Great work on this!
renderTitle?: (item: string) => React.ReactElement; | ||
renderBody?: (item: string) => React.ReactElement; | ||
} | ||
|
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.
Why did you insert interface on this code?
how did you plan to show it?
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.
It's my mistake. You can open a PR for this. Thanks for point it out.
Interface type is unnecessary code in docs I got a confirmation from below conversation https://github.com/dooboolab/dooboo-ui/pull/69/files/7bc93125c25e190aa8f9b2066d666e4565ac0512#r697234481 related PR dooboolab-community#69
Interface type is unnecessary code in docs I got a confirmation from below conversation https://github.com/dooboolab/dooboo-ui/pull/69/files/7bc93125c25e190aa8f9b2066d666e4565ac0512#r697234481 related PR #69 * Update legacy props in usage example for [Accordion] component - isAnimated -> shouldAnimate
Description
Wrap additional style props with
styles
object.All components in dooboo-ui should follow this pattern.
Related Issues
none.
Tests
none.
Checklist
yarn test
oryarn test -u
if you need to update snapshot.yarn lint