From 741927bcad8931b447d87d5167dececc0fe8c18f Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Tue, 1 Nov 2022 16:47:09 -0400 Subject: [PATCH] Update async route exports --- src/routes/asyncRoutes/index.tsx | 3 +++ src/routes/index.tsx | 4 +--- 2 files changed, 4 insertions(+), 3 deletions(-) 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';