remove usermanagment from the backoffice

This commit is contained in:
mengstabketemaw
2026-06-13 11:47:39 +03:00
parent de6d5a01cb
commit bd6fd97111
6 changed files with 18 additions and 70 deletions

View File

@@ -5,7 +5,9 @@ import {
OTPVerificationPage,
} from '@ema-platform/auth';
import { AuthLayout } from '../layouts/AuthLayout';
import { AuthProviders } from '../iam/IamProviders';
import { BackofficeLayout } from '../layouts/BackofficeLayout';
import { ProtectedRoute } from './ProtectedRoute';
import { DashboardPage } from '../features/dashboard/pages/DashboardPage';
import UserManagementHostPage from '../features/user-management-host/UserManagementHostPage';
const router = createBrowserRouter([
@@ -17,6 +19,17 @@ const router = createBrowserRouter([
{ path: '/otp-verify', element: <OTPVerificationPage /> },
],
},
{
element: <ProtectedRoute />,
children: [
{
element: <BackofficeLayout />,
children: [
{ path: '/dashboard', element: <DashboardPage /> },
],
},
],
},
{ path: '/um/*', element: <UserManagementHostPage /> },
{ path: '/404', element: <div>Page not found</div> },
{ path: '*', element: <Navigate to="/404" replace /> },