-
Notifications
You must be signed in to change notification settings - Fork 2
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(bivariate-color-manager): 10929 - implemented sublist #74
Conversation
@propakov looks like link to task not correct |
...bivariate_color_manager/components/SentimentsCombinationsList/SentimentsCombinationsList.tsx
Outdated
Show resolved
Hide resolved
<CSSTransition {...props} nodeRef={nodeRef}> | ||
<> | ||
{Children.map(children, (child) => | ||
isValidElement(child) ? cloneElement(child, { ref: nodeRef }) : child, |
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.
Be careful with cloneElement
, is expensive operation, but here it clone only one children - tr, so it should be okay
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.
do you know a better way of passing some prop to children?
maybe render function pattern would work better?
<CSSTransitionWrapper
in={rowSelected}
timeout={300}
unmountOnExit
appear
classNames={fadeClassNames}
>
(ref) =>
<tr ref={ref} className={s.sublist}>
sorry, last digit has lost |
ee25d52
to
586fa49
Compare
https://kontur.fibery.io/Tasks/Task/Sublist-with-indicators-(Color-legends-section)-dn-fe-10929
9