mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-26 19:12:50 +00:00
fix user managment link mismatch
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import type { ReactNode } from 'react';
|
||||
import { type ReactNode } from 'react';
|
||||
import {
|
||||
AuthProvider,
|
||||
PermissionProvider,
|
||||
@@ -12,6 +12,15 @@ interface IamProvidersProps {
|
||||
children: ReactNode;
|
||||
}
|
||||
|
||||
// Override the package's default module base path so its
|
||||
// internal navigation uses /users instead of /user-management.
|
||||
if (typeof window !== 'undefined') {
|
||||
(window as Record<string, unknown>).__USER_MANAGEMENT_BRANDING__ = {
|
||||
...((window as Record<string, unknown>).__USER_MANAGEMENT_BRANDING__ as object | undefined),
|
||||
moduleBasePath: '/users',
|
||||
};
|
||||
}
|
||||
|
||||
export function IamProviders({ children }: IamProvidersProps) {
|
||||
return (
|
||||
<AuthProvider>
|
||||
|
||||
@@ -39,7 +39,7 @@ const router = createBrowserRouter([
|
||||
children: [
|
||||
{ index: true, element: <UserManagementPage /> },
|
||||
{ path: 'bulk-upload', element: <BulkUploadPage /> },
|
||||
{ path: 'archived', element: <ArchivedUsersPage /> },
|
||||
{ path: 'archived-users', element: <ArchivedUsersPage /> },
|
||||
{ path: 'position-management', element: <PositionManagementPage /> },
|
||||
{ path: 'position-management/new', element: <CreatePositionPage /> },
|
||||
{ path: 'position-management/edit/:id', element: <EditPositionPage /> },
|
||||
|
||||
Reference in New Issue
Block a user