Update async route exports

This commit is contained in:
Bill Thornton 2022-11-01 16:47:09 -04:00
parent 2bc3bc8a93
commit 741927bcad
2 changed files with 4 additions and 3 deletions

View File

@ -17,3 +17,6 @@ export const toAsyncPageRoute = (route: AsyncRoute) => (
element={<AsyncPage page={route.page} />} element={<AsyncPage page={route.page} />}
/> />
); );
export * from './admin';
export * from './user';

View File

@ -1,9 +1,7 @@
import React from 'react'; import React from 'react';
import { Navigate, Route, Routes } from 'react-router-dom'; import { Navigate, Route, Routes } from 'react-router-dom';
import { toAsyncPageRoute } from './asyncRoutes'; import { ASYNC_ADMIN_ROUTES, ASYNC_USER_ROUTES, toAsyncPageRoute } from './asyncRoutes';
import { ASYNC_ADMIN_ROUTES } from './asyncRoutes/admin';
import { ASYNC_USER_ROUTES } from './asyncRoutes/user';
import ConnectionRequired from '../components/ConnectionRequired'; import ConnectionRequired from '../components/ConnectionRequired';
import ServerContentPage from '../components/ServerContentPage'; import ServerContentPage from '../components/ServerContentPage';
import { LEGACY_ADMIN_ROUTES, LEGACY_USER_ROUTES, toViewManagerPageRoute } from './legacyRoutes'; import { LEGACY_ADMIN_ROUTES, LEGACY_USER_ROUTES, toViewManagerPageRoute } from './legacyRoutes';