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
feat(axis): support object type tickLabelProp #1662
Conversation
In addition, all places where a function was used without using any of the arguments supplied to the function, I replaced these by an object as this should be slightly more efficient/readable
…ouple of them Use default tick label props and override just the props that the consumer may have specified. This only works if they specify the props as an object, not as a function
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.
@Robin-Hoodie thanks for the awesome addition! this will definitely clean up this API / give a better dev experience. 🙌
Overall looks good to me but I had one suggestion that might make it a bit more readable/reduce complexity.
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.
lgtm! thanks again @Robin-Hoodie 💯
🎉 This PR is included in version |
🚀 Enhancements
tickLabelProps
as an objecttickLabelProps
as an objectResolves #1657