Skip to content

Commit

Permalink
fix prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanlawson committed Mar 10, 2019
1 parent b0fee34 commit ef71101
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/components/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default class Search extends React.PureComponent {
this.state = {
icon: icons.search,
isSearching: false,
id: ++id
id: ++id,
}

this.data = props.data
Expand Down Expand Up @@ -62,7 +62,7 @@ export default class Search extends React.PureComponent {
}
}

clearIfNotSearching () {
clearIfNotSearching() {
const { isSearching } = this.state
if (!isSearching) {
this.clear()
Expand Down Expand Up @@ -92,10 +92,9 @@ export default class Search extends React.PureComponent {
* Use a <label> in addition to the placeholder for accessibility, but place it off-screen
* http://www.maxability.co.in/2016/01/placeholder-attribute-and-why-it-is-not-accessible/
*/}
<label
className="emoji-mart-sr-only"
htmlFor={inputId}
>{i18n.search}</label>
<label className="emoji-mart-sr-only" htmlFor={inputId}>
{i18n.search}
</label>
<button
className="emoji-mart-search-icon"
onClick={this.clearIfNotSearching}
Expand Down

0 comments on commit ef71101

Please sign in to comment.