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

View File

@@ -127,13 +127,15 @@ export const UserProjectsTable = ({ membershipId, handlePopUpOpen }: Props) => {
})}
</TBody>
</Table>
<Pagination
count={filteredProjects.length}
page={page}
perPage={perPage}
onChangePage={setPage}
onChangePerPage={setPerPage}
/>
{Boolean(filteredProjects.length) && (
<Pagination
count={filteredProjects.length}
page={page}
perPage={perPage}
onChangePage={setPage}
onChangePerPage={setPerPage}
/>
)}
{!isLoading && !filteredProjects?.length && (
<EmptyState
title={