-
Notifications
You must be signed in to change notification settings - Fork 4
Moved tag selector to a component #543
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
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #543 +/- ##
==========================================
+ Coverage 26.69% 27.27% +0.58%
==========================================
Files 189 189
Lines 3136 3120 -16
Branches 456 453 -3
==========================================
+ Hits 837 851 +14
+ Misses 1949 1923 -26
+ Partials 350 346 -4
Continue to review full report at Codecov.
|
b5a2294 to
25c1920
Compare
sdunster
left a comment
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.
some nits
| <CheckBox | ||
| style={{ flex: 1, padding: 10 }} | ||
| rightText={option.name} | ||
| onClick={() => this.props.onSelect(option)} |
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.
if this was it's own component you wouldn't need the closure
| round | ||
| showLoading={this.props.isLoading} | ||
| containerStyle={styles.searchbar} | ||
| onChangeText={text => this.props.onSearch(text)} |
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.
onChangeText={this.props.onSearch}
| visible={this.state.tagsModal} | ||
| closeModal={this.handleTagBack} | ||
| onSearch={text => this.searchTagOnPress(text)} | ||
| onSelect={option => this.handleTagChange(option)} |
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.
onSearch, onSelect and backModal can all drop the closure like this:
onSelect={this.handleTagChange}
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.
well thats cool. TIL
Moved tag selector from groups page into a component.