Skip to content

Commit

Permalink
Merge branch 'DSEGOG-363-edit-a-user' into DSEGOG-364-delete-an-exist…
Browse files Browse the repository at this point in the history
…ing-user
  • Loading branch information
joshdimanteto committed Mar 4, 2025
2 parents ca45ab8 + 0e147bd commit cbcc51e
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions src/admin/users/usersTable.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@ export const AUTHORISED_ROUTE_LIST = [
'/experiments POST',
'/users POST',
'/users PATCH',
'/users GET',
'/users/{id_} DELETE',
'/maintenance GET',
'/maintenance POST',
'/maintenance/scheduled GET',
'/maintenance/scheduled POST',
];

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

// Define the columns for the table
const columns: MRT_ColumnDef<User>[] = [
{
accessorKey: 'username',
header: 'Username',
},
{ accessorKey: 'username', header: 'Username' },

{
accessorKey: 'auth_type',
Expand Down Expand Up @@ -98,14 +100,9 @@ function UsersTable() {
positionToolbarAlertBanner: 'bottom',
autoResetPageIndex: false,
// Localisation
localization: {
...MRT_Localization_EN,
},
localization: { ...MRT_Localization_EN },
// State
initialState: {
showColumnFilters: true,
showGlobalFilter: true,
},
initialState: { showColumnFilters: true, showGlobalFilter: true },
state: {
pagination: { pageSize: 15, pageIndex: 0 },
showProgressBars: userDataLoading,
Expand All @@ -119,9 +116,7 @@ function UsersTable() {
},
muiTableContainerProps: {
// Page height - unknown - app bar height - footer height - additional
sx: {
height: `calc(100vh - 8px - 64px - 24px - 250px)`,
},
sx: { height: `calc(100vh - 8px - 64px - 24px - 250px)` },
},
renderCreateRowDialogContent: ({ table }) => {
return (
Expand Down

0 comments on commit cbcc51e

Please sign in to comment.