Improve CategorySearch in web
fix #814
Can you also follow the PR template? They are present for a reason so that we don't miss documentation or other things related to PR.
@jyash97 Can you review it?
I found the following error with the removal of disable eslint.
Once I fixed it, following lint errors popped up.
Both errors comes as eslint(react/jsx-indent).
I found similar kind of issue here.
https://github.com/yannickcr/eslint-plugin-react/issues/1679
shall I use the following propType to specify the range, by importing PropTypes as prop-types.
categorySuggestionsListSize: PropTypes.oneOf([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]),
I think there is some eslint config issue on your side as I tried changing things on the same file and could not replicate.
Also for propTypes you may need to define a custom prop type.
To remove the eslint issue I revert back to a previous commit and move the code changes again.
For propTypes custom prop type was defined.
And I tested it locally rigorously.