summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorMichael Hunteman <michael@huntm.net>2024-08-30 17:12:52 -0700
committerMichael Hunteman <michael@huntm.net>2024-08-30 17:12:52 -0700
commit05ef638bc032473a8b4bfa9be2de2e994c7a1e7c (patch)
treedd259aee14c25c01940145f99eec1cb97893fbbb /client
parent7c9e469b5b9deaee24e99825699dd4df194d4303 (diff)
Remove pagination options
Diffstat (limited to 'client')
-rw-r--r--client/src/components/Dashboard.tsx9
-rw-r--r--client/src/slices/api/guestSlice.ts2
2 files changed, 9 insertions, 2 deletions
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() {
<div
key={index}
style={{
- width: '32%',
+ width: '34%',
display: 'flex',
justifyContent: 'space-around',
}}
diff --git a/client/src/slices/api/guestSlice.ts b/client/src/slices/api/guestSlice.ts
index fab0454..a7dbcc4 100644
--- a/client/src/slices/api/guestSlice.ts
+++ b/client/src/slices/api/guestSlice.ts
@@ -9,7 +9,7 @@ import type {
export const guestSlice = createApi({
reducerPath: 'guestApi',
baseQuery: fetchBaseQuery({
- baseUrl: import.meta.env.VITE_BASE_URL + 'guests/',
+ baseUrl: `${import.meta.env.VITE_BASE_URL}guests/`,
prepareHeaders: (headers, { getState }) => {
const token = (getState() as RootState).guest.token;
if (token) {