-
Notifications
You must be signed in to change notification settings - Fork 9
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
refactor: extract page elements and use hooks for search #854
base: develop
Are you sure you want to change the base?
Conversation
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 work Peng!
Can you do another pass through the comments in features/Search/Search
and features/Search/HackerSelect
and then this will be good to merge
const { sponsor, viewSaved, results } = this.state; | ||
const searchBar = this.state.searchBar.toLowerCase(); | ||
const filter = () => { | ||
const currSearchBar = searchBar.toLowerCase(); |
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.
what's the diff between searchBar
and currSearchBar
?
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 would assume that it's just searchBar
but lowercase?
IIRC this function is just to filter out rows that don't match the search bar.
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.
Good to merge!
Tickets:
List of changes:
Type of change:
Please delete options that aren't relevant.
How did you do this?
How to test:
Questions:
PR Checklist:
develop
branch (before testing)Screenshots: