Hide paginators for empty lists
This commit is contained in:
@@ -37,6 +37,8 @@ const Paginator = ({
|
|||||||
const goToLastPage = () => setPageParams({ page: lastPage }, "replace");
|
const goToLastPage = () => setPageParams({ page: lastPage }, "replace");
|
||||||
const goToFirstPage = () => setPageParams({ page: 1 }, "replace");
|
const goToFirstPage = () => setPageParams({ page: 1 }, "replace");
|
||||||
|
|
||||||
|
if (count === 0) return null;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<HStack
|
<HStack
|
||||||
pt={4}
|
pt={4}
|
||||||
|
|||||||
Reference in New Issue
Block a user