myems-web/src/hooks/usePagination.js

Summary

Maintainability
A
1 hr
Test Coverage

Function usePagination has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const usePagination = (items, defaultItemsPerPage = 5) => {
  const [data, setData] = useState([]);
  const [itemsChunk, setItemsChunk] = useState([]);
  const [total, setTotal] = useState(0);
  const [lastPageNo, setLastPageNo] = useState(0);
Severity: Minor
Found in myems-web/src/hooks/usePagination.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status