diff --git a/src/routes/asyncRoutes/index.tsx b/src/routes/asyncRoutes/index.tsx index 661a41d840..9b9df27dd5 100644 --- a/src/routes/asyncRoutes/index.tsx +++ b/src/routes/asyncRoutes/index.tsx @@ -17,3 +17,6 @@ export const toAsyncPageRoute = (route: AsyncRoute) => ( element={} /> ); + +export * from './admin'; +export * from './user'; diff --git a/src/routes/index.tsx b/src/routes/index.tsx index 231a18db11..be24c811d8 100644 --- a/src/routes/index.tsx +++ b/src/routes/index.tsx @@ -1,9 +1,7 @@ import React from 'react'; import { Navigate, Route, Routes } from 'react-router-dom'; -import { toAsyncPageRoute } from './asyncRoutes'; -import { ASYNC_ADMIN_ROUTES } from './asyncRoutes/admin'; -import { ASYNC_USER_ROUTES } from './asyncRoutes/user'; +import { ASYNC_ADMIN_ROUTES, ASYNC_USER_ROUTES, toAsyncPageRoute } from './asyncRoutes'; import ConnectionRequired from '../components/ConnectionRequired'; import ServerContentPage from '../components/ServerContentPage'; import { LEGACY_ADMIN_ROUTES, LEGACY_USER_ROUTES, toViewManagerPageRoute } from './legacyRoutes';