From c4a58c713354b1817b56e55467af854051784c0a Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Tue, 1 Nov 2022 16:44:51 -0400 Subject: [PATCH] Restructure legacy route code --- src/routes/index.tsx | 2 +- src/routes/{legacy => legacyRoutes}/index.tsx | 2 +- src/routes/{legacy/userRoutes.ts => legacyRoutes/user.ts} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename src/routes/{legacy => legacyRoutes}/index.tsx (94%) rename src/routes/{legacy/userRoutes.ts => legacyRoutes/user.ts} (100%) diff --git a/src/routes/index.tsx b/src/routes/index.tsx index 5b81cb8ae..086caca90 100644 --- a/src/routes/index.tsx +++ b/src/routes/index.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { Navigate, Route, Routes } from 'react-router-dom'; import ConnectionRequired from '../components/ConnectionRequired'; -import { LEGACY_USER_ROUTES, toViewManagerPageRoute } from './legacy'; +import { LEGACY_USER_ROUTES, toViewManagerPageRoute } from './legacyRoutes'; import UserNew from './user/usernew'; import Search from './search'; import UserEdit from './user/useredit'; diff --git a/src/routes/legacy/index.tsx b/src/routes/legacyRoutes/index.tsx similarity index 94% rename from src/routes/legacy/index.tsx rename to src/routes/legacyRoutes/index.tsx index a3b732f96..2bcced266 100644 --- a/src/routes/legacy/index.tsx +++ b/src/routes/legacyRoutes/index.tsx @@ -20,4 +20,4 @@ export function toViewManagerPageRoute(route: LegacyRoute) { ); } -export * from './userRoutes'; +export * from './user'; diff --git a/src/routes/legacy/userRoutes.ts b/src/routes/legacyRoutes/user.ts similarity index 100% rename from src/routes/legacy/userRoutes.ts rename to src/routes/legacyRoutes/user.ts