-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
implement filtered list #120
base: master
Are you sure you want to change the base?
Conversation
This pull request is being automatically deployed with ZEIT Now (learn more). 🔍 Inspect: https://zeit.co/code4ro/taskforce-fe-components/n2n79imge |
import "./filtered-list-item.styles.scss"; | ||
import CaretSvg from "../../../images/icons/caret.svg"; | ||
|
||
export class FilteredListItem extends React.Component { |
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.
All components in here are function components. For the sake of consistency, could you please convert yours to function components as well?
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.
Refactored FilteredListItem to use a function.
@surdu For FilteredList I need to have local state, do you recommend a different approach?
src/components/filtered-list/filtered-list-item/filtered-list-item.styles.scss
Show resolved
Hide resolved
Talked with @RaduCStefanescu and decided to seperate that ticket into 2 smaller reusable components that is api agnostic and reusable in different places. This PR addresses the list component. |
Heya! I talked to @adaczo privately and we decided we needed some small changes to this component, so he started from scratch. |
}; | ||
|
||
FilteredList.propTypes = { | ||
config: PropTypes.object, |
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.
I believe it will be better if we define this as a PropTypes.shape
. Please see here for an example.
What changed?