-
Notifications
You must be signed in to change notification settings - Fork 16
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
Add searchable prop in CategoryWidget to optionally use the search functionality #338
Add searchable prop in CategoryWidget to optionally use the search functionality #338
Conversation
This pull request has been linked to Shortcut Story #210130: Add searchable prop in CategoryWidget to optionally use the search functionality. |
Pull Request Test Coverage Report for Build 1877950155
💛 - Coveralls |
Sergio, I think we are missing the number of Others categories within parenthesis, as defined by @josegilg |
…sc-210130/add-searchable-prop-in-categorywidget-to # Conflicts: # CHANGELOG.md
const blocked = blockedCategories.length; | ||
return blocked ? data.length - blocked : data.length - maxItems; | ||
}, [data, maxItems, blockedCategories]); | ||
|
||
// Separated to simplify the widget layout but inside the main component to avoid passing all dependencies | ||
const CategoryItem = (props) => { |
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.
Any refactor here, moving 'internal' components to different files would be really appreciated
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, I'll add it to my backlog 👌
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.
👍🏻
Story details: https://app.shortcut.com/cartoteam/story/210130