From 05ef638bc032473a8b4bfa9be2de2e994c7a1e7c Mon Sep 17 00:00:00 2001 From: Michael Hunteman Date: Fri, 30 Aug 2024 17:12:52 -0700 Subject: Remove pagination options --- client/src/components/Dashboard.tsx | 9 ++++++++- client/src/slices/api/guestSlice.ts | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'client') diff --git a/client/src/components/Dashboard.tsx b/client/src/components/Dashboard.tsx index 40c84f6..42a4224 100644 --- a/client/src/components/Dashboard.tsx +++ b/client/src/components/Dashboard.tsx @@ -47,6 +47,13 @@ function Dashboard() { const table = useMaterialReactTable({ columns, data: guests, + muiPaginationProps: { + color: 'primary', + shape: 'rounded', + showRowsPerPage: false, + variant: 'outlined', + }, + paginationDisplayMode: 'pages', renderDetailPanel: ({ row }) => row.original.partySize > 1 ? row.original.partyList.map((guest, index) => { @@ -54,7 +61,7 @@ function Dashboard() {
{ const token = (getState() as RootState).guest.token; if (token) { -- cgit v1.2.3