src/client/components/pages/parts/pager.js
Function render
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
return (
this.state.results && this.state.results.length ?
<div id="PagerElement">
<hr className="thin"/>
Function triggerSearch
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
triggerSearch(newFrom = this.state.from, newSize = this.state.size) {
const searchParams = new URLSearchParams(this.props.querySearchParams);
searchParams.set('size', newSize);
searchParams.set('from', newFrom);
const newSearchParamsString = `?${searchParams.toString()}`;