Closed rylew1 closed 1 month ago
in SearchForm - we have the following:
SearchForm
{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.
{searchResults?.data?.length >= 1
SearchPagination
Summary
in
SearchForm
- we have the following:{searchResults?.data?.length >= 1
check would be better placed inside theSearchPagination
component.Acceptance criteria
SearchForm
doesn't have any conditionals in jsx