Skip to content

Commit

Permalink
fix eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ManAnRuck committed Jul 20, 2018
1 parent 84b34ab commit 9491c56
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/screens/Search/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,12 +248,15 @@ SearchScreen.propTypes = {
finishSearch: PropTypes.func.isRequired,
updateSearchTerm: PropTypes.func.isRequired,
mostSearchedTerms: PropTypes.arrayOf(PropTypes.shape()),
searchTerm: PropTypes.string.isRequired
searchTerm: PropTypes.string.isRequired,
addToSearchHistory: PropTypes.func.isRequired,
searchHistory: PropTypes.arrayOf(PropTypes.string )
};

SearchScreen.defaultProps = {
navigator: undefined,
mostSearchedTerms: []
mostSearchedTerms: [],
searchHistory: []
};

export default withApollo(
Expand Down Expand Up @@ -286,7 +289,7 @@ export default withApollo(
searchHistory: searchHistory
? searchHistory.map(({ term }) => term)
: []
}),
})
}),

// Mutations
Expand Down

0 comments on commit 9491c56

Please sign in to comment.