HHS / simpler-grants-gov

https://simpler.grants.gov
Other
31 stars 9 forks source link

[Task]: Update SearchPagination to include data length check #1921

Closed rylew1 closed 1 month ago

rylew1 commented 1 month ago

Summary

in SearchForm - we have the following:

  {searchResults?.data?.length >= 1 ? (
                <SearchPagination
                  totalPages={searchResults?.pagination_info?.total_pages}
                  page={page}
                  handlePageChange={handlePageChange}
                />
              ) : null}

{searchResults?.data?.length >= 1 check would be better placed inside the SearchPagination component.

Acceptance criteria