@@ -6,15 +6,9 @@ import { ScreenContentContainer } from '../components/Core/ScreenContentContaine
6
6
import UserManagementTable from '../components/UserManagement/UserManagementTable' ;
7
7
import { GetAllUsersAdmin } from '../services/userAccount' ;
8
8
import { AwaitTypesafe } from '../utils/AwaitTypesafe' ;
9
- import { makeParticipantLoader } from '../utils/loaderHelpers' ;
10
9
import { RouteErrorBoundary } from '../utils/RouteErrorBoundary' ;
11
10
import { PortalRoute } from './routeUtils' ;
12
11
13
- // const oldloader = makeParticipantLoader((participantId) => {
14
- // const auditTrail = GetAllUsersAdmin(participantId);
15
- // return defer({ auditTrail });
16
- // });
17
-
18
12
const loader = ( ) => {
19
13
const userList = GetAllUsersAdmin ( ) ;
20
14
return defer ( { userList } ) ;
@@ -25,11 +19,8 @@ function ManageUsers() {
25
19
26
20
return (
27
21
< >
28
- < h1 > Audit Trail</ h1 >
29
- < p className = 'heading-details' >
30
- View a detailed log of all past actions performed by, or on behalf of, the current
31
- participant.
32
- </ p >
22
+ < h1 > Users</ h1 >
23
+ < p className = 'heading-details' > Manage portal users</ p >
33
24
< ScreenContentContainer >
34
25
< Suspense fallback = { < Loading message = 'Loading users...' /> } >
35
26
< AwaitTypesafe resolve = { data . userList } >
@@ -46,7 +37,6 @@ export const ManageUsersRoute: PortalRoute = {
46
37
element : < ManageUsers /> ,
47
38
errorElement : < RouteErrorBoundary /> ,
48
39
// ****** should we change the route here?
49
- path : '/participant/:participantId/ManageUsers ' ,
40
+ path : '/participant/:participantId/manageUsers ' ,
50
41
loader,
51
- isHidden : true ,
52
42
} ;
0 commit comments