-
Notifications
You must be signed in to change notification settings - Fork 734
Moved ColorSliderGroup to FC. #2833
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
Conversation
labelsStyle, | ||
accessible, | ||
labels, | ||
migrate |
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.
Seems like you could pick up the props you need for the group (container) and pass the others as "others" to the ColorSlider, no?
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.
Most of them, Yeah. Fixed.
@nitzanwix Looks great. I left a small coment |
return null; | ||
}; | ||
const onValueChange = useCallback((value: string) => { | ||
props.onValueChange?.(value); |
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.
props can potentially be undefied so add a ? after
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.
Fixed
Description
Moved ColorSliderGroup to FC.
Changelog
Additional info