Details
To test the search feature, please add and modify the following blocks of code:
let searchBar = null; if (this.props.searchIndex) { searchBar = ( <Search searchText={this.state.searchText} onChangeText={this.onChangeSearchText} placeholder="Search chats" /> ); }
You will also need to import the Search component from ../components/search.react at the top of the file
Once you have the Search component being returned you can add a new entry and test that the search feature is working as expected
Diff Detail
- Repository
- rCOMM Comm
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
web/calendar/thread-picker.react.js | ||
---|---|---|
73–89 | This logic comes from the native ThreadList component |
web/calendar/thread-picker.react.js | ||
---|---|---|
73–89 | Thanks for linking to that! |
web/calendar/thread-picker.react.js | ||
---|---|---|
73–89 | Ah yeah this is shitty. I understand now why you guys created ENG-1914. Options here:
Separate note – if ENG-1914 had the right context of why we wanted to switch to a functional component (not that it needs to be "modern", but that we need to memoize something that depends on state) then I wouldn't have pushed back. Anyways, feel free to reopen ENG-1914 if you guys prefer! Or leave as-is. I think any of the solutions above would be fine. |