fix: hide pagination when no search match

This commit is contained in:
Scott Wilson
2024-11-26 17:20:49 -08:00
parent 586b901318
commit ecea79f040
@@ -127,6 +127,7 @@ export const UserProjectsTable = ({ membershipId, handlePopUpOpen }: Props) => {
})} })}
</TBody> </TBody>
</Table> </Table>
{Boolean(filteredProjects.length) && (
<Pagination <Pagination
count={filteredProjects.length} count={filteredProjects.length}
page={page} page={page}
@@ -134,6 +135,7 @@ export const UserProjectsTable = ({ membershipId, handlePopUpOpen }: Props) => {
onChangePage={setPage} onChangePage={setPage}
onChangePerPage={setPerPage} onChangePerPage={setPerPage}
/> />
)}
{!isLoading && !filteredProjects?.length && ( {!isLoading && !filteredProjects?.length && (
<EmptyState <EmptyState
title={ title={