aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/components/common/MultiSelect.js
diff options
context:
space:
mode:
authorStas Vilchik <stas-vilchik@users.noreply.github.com>2017-04-20 11:10:13 +0200
committerGitHub <noreply@github.com>2017-04-20 11:10:13 +0200
commitf6e90fdc19e222b3b238f0f5995a8039b7db158e (patch)
tree69c22415cb50a650b046ce4b9a9ac99e57695dfd /server/sonar-web/src/main/js/components/common/MultiSelect.js
parent36c9fa041018d7eed91f1d22e0c5eda075737ebc (diff)
downloadsonarqube-f6e90fdc19e222b3b238f0f5995a8039b7db158e.tar.gz
sonarqube-f6e90fdc19e222b3b238f0f5995a8039b7db158e.zip
upgrade prettier (#1954)
Diffstat (limited to 'server/sonar-web/src/main/js/components/common/MultiSelect.js')
-rw-r--r--server/sonar-web/src/main/js/components/common/MultiSelect.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/server/sonar-web/src/main/js/components/common/MultiSelect.js b/server/sonar-web/src/main/js/components/common/MultiSelect.js
index 2faa0f2ef81..2c75904d706 100644
--- a/server/sonar-web/src/main/js/components/common/MultiSelect.js
+++ b/server/sonar-web/src/main/js/components/common/MultiSelect.js
@@ -27,10 +27,10 @@ type Props = {
selectedElements: Array<string>,
elements: Array<string>,
listSize: number,
- onSearch: (string) => void,
- onSelect: (string) => void,
- onUnselect: (string) => void,
- validateSearchInput: (string) => string
+ onSearch: string => void,
+ onSelect: string => void,
+ onUnselect: string => void,
+ validateSearchInput: string => string
};
type State = {
@@ -225,7 +225,7 @@ export default class MultiSelect extends React.PureComponent {
const activeElement = this.getAllElements(this.props, this.state)[activeIdx];
return (
- <div className="multi-select" ref={div => this.container = div}>
+ <div className="multi-select" ref={div => (this.container = div)}>
<div className="search-box menu-search">
<button className="search-box-submit button-clean">
<i className="icon-search-new" />
@@ -237,7 +237,7 @@ export default class MultiSelect extends React.PureComponent {
placeholder={translate('search_verb')}
onChange={this.handleSearchChange}
autoComplete="off"
- ref={input => this.searchInput = input}
+ ref={input => (this.searchInput = input)}
/>
</div>
<ul className="menu">