Skip to content

Commit cbcc51e

Browse files
committed
Merge branch 'DSEGOG-363-edit-a-user' into DSEGOG-364-delete-an-existing-user
2 parents ca45ab8 + 0e147bd commit cbcc51e

File tree

1 file changed

+9
-14
lines changed

1 file changed

+9
-14
lines changed

src/admin/users/usersTable.component.tsx

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@ export const AUTHORISED_ROUTE_LIST = [
3131
'/experiments POST',
3232
'/users POST',
3333
'/users PATCH',
34+
'/users GET',
3435
'/users/{id_} DELETE',
36+
'/maintenance GET',
37+
'/maintenance POST',
38+
'/maintenance/scheduled GET',
39+
'/maintenance/scheduled POST',
3540
];
3641

3742
export const AUTH_TYPE_LIST = ['local', 'FedID'];
@@ -48,10 +53,7 @@ function UsersTable() {
4853

4954
// Define the columns for the table
5055
const columns: MRT_ColumnDef<User>[] = [
51-
{
52-
accessorKey: 'username',
53-
header: 'Username',
54-
},
56+
{ accessorKey: 'username', header: 'Username' },
5557

5658
{
5759
accessorKey: 'auth_type',
@@ -98,14 +100,9 @@ function UsersTable() {
98100
positionToolbarAlertBanner: 'bottom',
99101
autoResetPageIndex: false,
100102
// Localisation
101-
localization: {
102-
...MRT_Localization_EN,
103-
},
103+
localization: { ...MRT_Localization_EN },
104104
// State
105-
initialState: {
106-
showColumnFilters: true,
107-
showGlobalFilter: true,
108-
},
105+
initialState: { showColumnFilters: true, showGlobalFilter: true },
109106
state: {
110107
pagination: { pageSize: 15, pageIndex: 0 },
111108
showProgressBars: userDataLoading,
@@ -119,9 +116,7 @@ function UsersTable() {
119116
},
120117
muiTableContainerProps: {
121118
// Page height - unknown - app bar height - footer height - additional
122-
sx: {
123-
height: `calc(100vh - 8px - 64px - 24px - 250px)`,
124-
},
119+
sx: { height: `calc(100vh - 8px - 64px - 24px - 250px)` },
125120
},
126121
renderCreateRowDialogContent: ({ table }) => {
127122
return (

0 commit comments

Comments
 (0)