Open kud opened 4 years ago
Hey @kud This sounds good. Open to accept PRs on this. :)
Hey, I would like to work on this
Sure you can work on this 👍
Hey @kud @jyash97 Need to clear some points.
renderNoResults
and renderSortOptions
are written in similar manner, and render to the dom as follows.
.......{this.props.sortOptions ? this.renderSortOptions() : null}
{!this.props.isLoading && !error && filteredResults.length === 0? this.renderNoResults(): null}......
renderResultStats
is implemented with conditional rendering using if/else
statements.
It seems that renderSortOptions
is not so different from renderResultStats
or renderNoResults
.
Therefore, need to clear the following 2 questions.
renderSortOptions
?renderSortOptions
,once the customization is done?
Like
renderResultStats
orrenderNoResults
, makerenderSortOptions
for customisation.https://github.com/appbaseio/reactivesearch/blob/next/packages/web/src/components/result/ReactiveList.js#L616