Implement space member search (#731)

* Hide pagination buttons if there is nothing to paginate
* Create reusable hook for search and pagination
This commit is contained in:
Philip Okugbe
2025-02-15 14:14:30 +00:00
committed by GitHub
parent 4d51986250
commit f92d63261d
7 changed files with 47 additions and 16 deletions
@@ -16,6 +16,10 @@ export default function Paginate({
}: PagePaginationProps) {
const { t } = useTranslation();
if (!hasPrevPage && !hasNextPage) {
return null;
}
return (
<Group mt="md">
<Button