Skip to content

Commit

Permalink
improve pagination layout
Browse files Browse the repository at this point in the history
  • Loading branch information
kantord committed Jan 17, 2025
1 parent 7c7d044 commit 415b4e9
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/components/AlertsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -211,12 +211,16 @@ export function AlertsTable() {
</Table>
</div>

<Button isDisabled={!hasPreviousPage} onPress={prevPage}>
Previous
</Button>
<Button isDisabled={!hasNextPage} onPress={nextPage}>
Next
</Button>
<div className="flex justify-center w-full p-4">
<div className="flex gap-2">
<Button isDisabled={!hasPreviousPage} onPress={prevPage}>
Previous
</Button>
<Button isDisabled={!hasNextPage} onPress={nextPage}>
Next
</Button>
</div>
</div>
</>
);
}

0 comments on commit 415b4e9

Please sign in to comment.